/** {@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); } }
/** * 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; }