/** * Validates that the subject has either a name identifier or subject confirmation * * @param subject subject to validate * * @throws ValidationException thrown if the subject has neither a name identifier or subject confirmation */ protected void validateNameIdentifierSubjectConfirmation(Subject subject) throws ValidationException { if (subject.getNameIdentifier() == null && subject.getSubjectConfirmation() == null) { throw new ValidationException("Either a NameIdentifier or SubjectConfirmation should be present"); } } }
if (data.getClaimDialect() != null && data.getClaimElem() != null) { Statement attrStatement = createSAMLAttributeStatement( SAMLUtils.createSubject(subject.getNameIdentifier(), confirmationMethod, keyInfo), data, config); statements.add(attrStatement);
if (samlSubject != null && samlSubject.getNameIdentifier() != null) { name = samlSubject.getNameIdentifier().getNameIdentifier();
subject = authenticationStatement.getSubject(); if (subject != null) { String resourceOwnerUserName = subject.getNameIdentifier().getNameIdentifier(); if (resourceOwnerUserName == null || resourceOwnerUserName.equals("")) { if (log.isDebugEnabled()) {
subject = authenticationStatement.getSubject(); if (subject != null) { String resourceOwnerUserName = subject.getNameIdentifier().getNameIdentifier(); if (resourceOwnerUserName == null || resourceOwnerUserName.equals("")) { if (log.isDebugEnabled()) {
if (samlSubject != null && samlSubject.getNameIdentifier() != null) { name = samlSubject.getNameIdentifier().getNameIdentifier();