/** * Create an AuthnStatement * @param authnContextDeclRef such as JBossSAMLURIConstants.AC_PASSWORD_PROTECTED_TRANSPORT * @param issueInstant * @return */ public AuthnStatementType createAuthnStatement(String authnContextDeclRef, XMLGregorianCalendar issueInstant) { AuthnStatementType authnStatement = new AuthnStatementType(issueInstant); AuthnContextType act = new AuthnContextType(); String authContextDeclRef = JBossSAMLURIConstants.AC_PASSWORD_PROTECTED_TRANSPORT.get(); act.addAuthenticatingAuthority(URI.create(authContextDeclRef)); authnStatement.setAuthnContext(act); return authnStatement; }
/** * Create an AuthnStatementType given the issue instant and the type of authentication * * @param instant an instanceof {@link XMLGregorianCalendar} * @param authnContextClassRefValue indicate the type of authentication performed * * @return {@link AuthnStatementType} */ public static AuthnStatementType createAuthnStatement(XMLGregorianCalendar instant, String authnContextClassRefValue) { AuthnStatementType authnStatement = new AuthnStatementType(instant); AuthnContextType authnContext = new AuthnContextType(); AuthnContextClassRefType authnContextClassRef = new AuthnContextClassRefType(URI.create(authnContextClassRefValue)); AuthnContextTypeSequence sequence = (authnContext).new AuthnContextTypeSequence(); sequence.setClassRef(authnContextClassRef); authnContext.setSequence(sequence); authnStatement.setAuthnContext(authnContext); return authnStatement; }
/** * Create an AuthnStatementType given the issue instant and the type of authentication * * @param instant an instanceof {@link XMLGregorianCalendar} * @param authnContextClassRefValue indicate the type of authentication performed * @return {@link AuthnStatementType} */ public static AuthnStatementType createAuthnStatement(XMLGregorianCalendar instant, String authnContextClassRefValue) { AuthnStatementType authnStatement = new AuthnStatementType(instant); AuthnContextType authnContext = new AuthnContextType(); AuthnContextClassRefType authnContextClassRef = new AuthnContextClassRefType(URI.create(authnContextClassRefValue)); AuthnContextTypeSequence sequence = (authnContext).new AuthnContextTypeSequence(); sequence.setClassRef(authnContextClassRef); authnContext.setSequence(sequence); authnStatement.setAuthnContext(authnContext); return authnStatement; }
/** * Create an AuthnStatementType given the issue instant and the type of authentication * @param instant an instanceof {@link XMLGregorianCalendar} * @param authnContextClassRefValue indicate the type of authentication performed * @return {@link AuthnStatementType} */ public static AuthnStatementType createAuthnStatement(XMLGregorianCalendar instant, String authnContextClassRefValue) { AuthnStatementType authnStatement = new AuthnStatementType(instant); AuthnContextType authnContext = new AuthnContextType(); AuthnContextClassRefType authnContextClassRef = new AuthnContextClassRefType( URI.create(authnContextClassRefValue)); AuthnContextTypeSequence sequence = (authnContext).new AuthnContextTypeSequence(); sequence.setClassRef(authnContextClassRef); authnContext.setSequence(sequence); authnStatement.setAuthnContext(authnContext); return authnStatement; }
/** * Create an AuthnStatementType given the issue instant and the type of authentication * * @param instant an instanceof {@link XMLGregorianCalendar} * @param authnContextClassRefValue indicate the type of authentication performed * * @return {@link AuthnStatementType} */ public static AuthnStatementType createAuthnStatement(XMLGregorianCalendar instant, String authnContextClassRefValue) { AuthnStatementType authnStatement = new AuthnStatementType(instant); AuthnContextType authnContext = new AuthnContextType(); AuthnContextClassRefType authnContextClassRef = new AuthnContextClassRefType(URI.create(authnContextClassRefValue)); AuthnContextTypeSequence sequence = (authnContext).new AuthnContextTypeSequence(); sequence.setClassRef(authnContextClassRef); authnContext.setSequence(sequence); authnStatement.setAuthnContext(authnContext); return authnStatement; }
/** * Create an AuthnStatementType given the issue instant and the type of authentication * @param instant an instanceof {@link XMLGregorianCalendar} * @param authnContextClassRefValue indicate the type of authentication performed * @return {@link AuthnStatementType} */ public static AuthnStatementType createAuthnStatement(XMLGregorianCalendar instant, String authnContextClassRefValue) { AuthnStatementType authnStatement = new AuthnStatementType(instant); AuthnContextType authnContext = new AuthnContextType(); AuthnContextClassRefType authnContextClassRef = new AuthnContextClassRefType( URI.create(authnContextClassRefValue)); AuthnContextTypeSequence sequence = (authnContext).new AuthnContextTypeSequence(); sequence.setClassRef(authnContextClassRef); authnContext.setSequence(sequence); authnStatement.setAuthnContext(authnContext); return authnStatement; }
/** * Create an AuthnStatement * * @param authnContextDeclRef such as JBossSAMLURIConstants.AC_PASSWORD_PROTECTED_TRANSPORT * @param issueInstant * * @return */ public AuthnStatementType createAuthnStatement(String authnContextDeclRef, XMLGregorianCalendar issueInstant) { AuthnStatementType authnStatement = new AuthnStatementType(issueInstant); AuthnContextType act = new AuthnContextType(); String authContextDeclRef = JBossSAMLURIConstants.AC_PASSWORD_PROTECTED_TRANSPORT.get(); act.addAuthenticatingAuthority(URI.create(authContextDeclRef)); AuthnContextTypeSequence sequence = act.new AuthnContextTypeSequence(); sequence.setClassRef(new AuthnContextClassRefType(URI.create(JBossSAMLURIConstants.AC_PASSWORD.get()))); act.setSequence(sequence); authnStatement.setAuthnContext(act); return authnStatement; }
/** * Create an AuthnStatement * * @param authnContextDeclRef such as JBossSAMLURIConstants.AC_PASSWORD_PROTECTED_TRANSPORT * @param issueInstant * @return */ public AuthnStatementType createAuthnStatement(String authnContextDeclRef, XMLGregorianCalendar issueInstant) { AuthnStatementType authnStatement = new AuthnStatementType(issueInstant); AuthnContextType act = new AuthnContextType(); String authContextDeclRef = JBossSAMLURIConstants.AC_PASSWORD_PROTECTED_TRANSPORT.get(); act.addAuthenticatingAuthority(URI.create(authContextDeclRef)); AuthnContextTypeSequence sequence = act.new AuthnContextTypeSequence(); sequence.setClassRef(new AuthnContextClassRefType(URI.create(JBossSAMLURIConstants.AC_PASSWORD.get()))); act.setSequence(sequence); authnStatement.setAuthnContext(act); return authnStatement; }
/** * Create an AuthnStatement * * @param authnContextDeclRef such as JBossSAMLURIConstants.AC_PASSWORD_PROTECTED_TRANSPORT * @param issueInstant * * @return */ public AuthnStatementType createAuthnStatement(String authnContextDeclRef, XMLGregorianCalendar issueInstant) { AuthnStatementType authnStatement = new AuthnStatementType(issueInstant); AuthnContextType act = new AuthnContextType(); String authContextDeclRef = JBossSAMLURIConstants.AC_PASSWORD_PROTECTED_TRANSPORT.get(); act.addAuthenticatingAuthority(URI.create(authContextDeclRef)); AuthnContextTypeSequence sequence = act.new AuthnContextTypeSequence(); sequence.setClassRef(new AuthnContextClassRefType(URI.create(JBossSAMLURIConstants.AC_PASSWORD.get()))); act.setSequence(sequence); authnStatement.setAuthnContext(act); return authnStatement; }
AuthnStatementType authnStatementType = new AuthnStatementType(issueInstant);
AuthnStatementType authnStatementType = new AuthnStatementType(issueInstant);
AuthnStatementType authnStatementType = new AuthnStatementType(issueInstant);
AuthnStatementType authnStatementType = new AuthnStatementType(issueInstant);
AuthnStatementType authnStatementType = new AuthnStatementType(issueInstant);