/** {@inheritDoc} */ public String generateIdentifier() { return generateIdentifier(16); }
/** {@inheritDoc} */ public String generateIdentifier() { return generateIdentifier(16); }
public static String createID() { try { SecureRandomIdentifierGenerator generator = new SecureRandomIdentifierGenerator(); return generator.generateIdentifier(); } catch (NoSuchAlgorithmException e) { log.error("Error while building Secure Random ID", e); //TODO : throw exception and break the flow } return null; }
protected NoSamlNamespaceAbstractSaml10ResponseView() { try { this.idGenerator = new SecureRandomIdentifierGenerator(); } catch (final NoSuchAlgorithmException e) { throw new IllegalStateException("Cannot create secure random ID generator for SAML message IDs."); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { SubjectQuery query = (SubjectQuery) parentSAMLObject; if (childSAMLObject instanceof Subject) { query.setSubject((Subject) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
public static String createID() { try { SecureRandomIdentifierGenerator generator = new SecureRandomIdentifierGenerator(); return generator.generateIdentifier(); } catch (NoSuchAlgorithmException e) { log.error("Error while building Secure Random ID", e); //TODO : throw exception and break the flow } return null; }
protected final String generateId() { return this.idGenerator.generateIdentifier(); }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { SubjectStatement statement = (SubjectStatement) parentSAMLObject; if (childSAMLObject instanceof Subject) { statement.setSubject((Subject) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** * Generates a unique Id for Authentication Requests * * @return generated unique ID */ public static String createID() throws Exception { try { SecureRandomIdentifierGenerator generator = new SecureRandomIdentifierGenerator(); return generator.generateIdentifier(); } catch (NoSuchAlgorithmException e) { throw new Exception("Error while building Secure Random ID.", e); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { StatusCode statusCode = (StatusCode) parentSAMLObject; if (childSAMLObject instanceof StatusCode) { statusCode.setStatusCode((StatusCode) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** * Generates a unique Id for Authentication Requests * * @return generated unique ID */ public static String createID() throws Exception { try { SecureRandomIdentifierGenerator generator = new SecureRandomIdentifierGenerator(); return generator.generateIdentifier(); } catch (NoSuchAlgorithmException e) { throw new Exception("Error while building Secure Random ID.", e); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { StatusCode statusCode = (StatusCode) parentSAMLObject; if (childSAMLObject instanceof StatusCode) { statusCode.setStatusCode((StatusCode) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException { SubjectConfirmation sc = (SubjectConfirmation) parentObject; if (childObject instanceof SubjectConfirmationData) { sc.setSubjectConfirmationData((SubjectConfirmationData) childObject); } else { super.processChildElement(parentObject, childObject); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { ResponseAbstractType response = (ResponseAbstractType) parentSAMLObject; if (childSAMLObject instanceof Signature) { response.setSignature((Signature) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { Request request = (Request) parentSAMLObject; if (childSAMLObject instanceof Issuer) { request.setIssuer((Issuer) childSAMLObject); } else if (childSAMLObject instanceof IDPList) { request.setIDPList((IDPList) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException { XACMLAuthzDecisionStatementType xacmlauthzdecisionstatement = (XACMLAuthzDecisionStatementType) parentObject; if (childObject instanceof RequestType) { xacmlauthzdecisionstatement.setRequest((RequestType) childObject); } else if (childObject instanceof ResponseType) { xacmlauthzdecisionstatement.setResponse((ResponseType) childObject); } else { super.processChildElement(parentObject, childObject); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentObject, XMLObject childObject) throws UnmarshallingException { AuthnStatement authnStatement = (AuthnStatement) parentObject; if (childObject instanceof SubjectLocality) { authnStatement.setSubjectLocality((SubjectLocality) childObject); } else if (childObject instanceof AuthnContext) { authnStatement.setAuthnContext((AuthnContext) childObject); } else { super.processChildElement(parentObject, childObject); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { Subject subject = (Subject) parentSAMLObject; if (childSAMLObject instanceof NameIdentifier) { subject.setNameIdentifier((NameIdentifier) childSAMLObject); } else if (childSAMLObject instanceof SubjectConfirmation) { subject.setSubjectConfirmation((SubjectConfirmation) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { Delegate delegate = (Delegate) parentSAMLObject; if (childSAMLObject instanceof BaseID) { delegate.setBaseID((BaseID) childSAMLObject); } else if (childSAMLObject instanceof NameID) { delegate.setNameID((NameID) childSAMLObject); } else if (childSAMLObject instanceof EncryptedID) { delegate.setEncryptedID((EncryptedID) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { Status status = (Status) parentSAMLObject; if (childSAMLObject instanceof StatusCode) { status.setStatusCode((StatusCode) childSAMLObject); } else if (childSAMLObject instanceof StatusMessage) { status.setStatusMessage((StatusMessage) childSAMLObject); } else if (childSAMLObject instanceof StatusDetail) { status.setStatusDetail((StatusDetail) childSAMLObject); } else { super.processChildElement(parentSAMLObject, childSAMLObject); } } }