use of org.apache.syncope.common.lib.to.SAML2IdPTO in project syncope by apache.
the class SAML2IdPDataBinderImpl method getIdPTO.
@Override
public SAML2IdPTO getIdPTO(final SAML2IdP idp) {
SAML2IdPTO idpTO = new SAML2IdPTO();
idpTO.setKey(idp.getKey());
idpTO.setEntityID(idp.getEntityID());
idpTO.setName(idp.getName());
idpTO.setUseDeflateEncoding(idp.isUseDeflateEncoding());
idpTO.setSupportUnsolicited(idp.isSupportUnsolicited());
idpTO.setBindingType(idp.getBindingType());
idpTO.setCreateUnmatching(idp.isCreateUnmatching());
idpTO.setSelfRegUnmatching(idp.isSelfRegUnmatching());
idpTO.setUpdateMatching(idp.isUpdateMatching());
idpTO.setMetadata(Base64.getMimeEncoder().encodeToString(idp.getMetadata()));
if (idp.getUserTemplate() != null) {
idpTO.setUserTemplate((UserTO) idp.getUserTemplate().get());
}
populateItems(idp, idpTO);
idpTO.getActionsClassNames().addAll(idp.getActionsClassNames());
return idpTO;
}
Aggregations