/** {@inheritDoc} */ protected void processElementContent(XMLObject samlObject, String elementContent) { GivenName name = (GivenName) samlObject; name.setName(elementContent); } }
/** * look for the <ContactPerson> and within that the GivenName. * * @param contactType the type of contact to look for * @return An appropriate string or null */ @Nullable public String getContactGivenName(@Nullable final String contactType) { final ContactPerson contact = getContactPerson(getContactType(contactType)); if (null == contact || null == contact.getGivenName()) { return null; } return contact.getGivenName().getName(); }
final StringBuilder fullName = new StringBuilder(); if (null != givenName) { fullName.append(givenName.getName()).append(" ");