/** * Get the subject to which the confirmation will be added. * * @param statement the statement being modified * * @return the subject to which the confirmation will be added */ @Nonnull private Subject getStatementSubject(@Nonnull final SubjectStatement statement) { if (statement.getSubject() != null) { return statement.getSubject(); } final Subject subject = subjectBuilder.buildObject(); statement.setSubject(subject); return subject; }
/** * Get the subject to which the name identifier will be added. * * @param statement the statement being modified * * @return the subject to which the name identifier will be added */ @Nonnull private Subject getStatementSubject(@Nonnull final SubjectStatement statement) { if (statement.getSubject() != null) { return statement.getSubject(); } final Subject subject = subjectBuilder.buildObject(); statement.setSubject(subject); return subject; }
/** * Get the subject to which the name identifier will be added. * * @param statement the statement being modified * * @return the subject to which the name identifier will be added */ @Nonnull private Subject getStatementSubject(@Nonnull final SubjectStatement statement) { if (statement.getSubject() != null) { return statement.getSubject(); } final Subject subject = subjectBuilder.buildObject(); statement.setSubject(subject); return subject; }
subjectStatements.addAll(saml1.getAuthorizationDecisionStatements()); for (SubjectStatement subjectStatement : subjectStatements) { Subject subject = subjectStatement.getSubject(); if (subject != null) { SubjectConfirmation confirmation = subject.getSubjectConfirmation();
if (statement.getSubject() != null && statement.getSubject().getNameIdentifier() != null) { return statement.getSubject().getNameIdentifier().getFormat();
if (statement.getSubject() != null && statement.getSubject().getNameIdentifier() != null) { return statement.getSubject().getNameIdentifier().getValue();