/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the subject * and claims of SAML statements. * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the * subject and claims of SAML statements. * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the * subject * and claims of SAML statements. * * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the * subject and claims of SAML statements. * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the * subject * and claims of SAML statements. * * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
/** * Given a user name, create a {@code SubjectType} that can then be inserted into an assertion * * @param userName * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
/** * Given a user name, create a {@code SubjectType} * that can then be inserted into an assertion * @param userName * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
/** * Given a user name, create a {@code SubjectType} that can then be inserted into an assertion * * @param userName * * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
/** * Given a user name, create a {@code SubjectType} that can then be inserted into an assertion * * @param userName * * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
/** * Given a user name, create a {@code SubjectType} * that can then be inserted into an assertion * @param userName * @return */ public static SubjectType createAssertionSubject(String userName) { SubjectType assertionSubject = new SubjectType(); STSubType subType = new STSubType(); NameIDType anil = new NameIDType(); anil.setValue(userName); subType.addBaseID(anil); assertionSubject.setSubType(subType); return assertionSubject; }
subjectType.setSubType(subType);
subjectType.setSubType(subType);
subjectType.setSubType(subType);
subjectType.setSubType(subType);
subjectType.setSubType(subType);
subjectType.setSubType(subType);
subjectType.setSubType(subType);
subjectType.setSubType(subType);
subjectType.setSubType(subType);
subjectType.setSubType(subType);