Search in sources :

Example 6 with SAML2IdPTO

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;
}
Also used : SAML2IdPTO(org.apache.syncope.common.lib.to.SAML2IdPTO)

Aggregations

SAML2IdPTO (org.apache.syncope.common.lib.to.SAML2IdPTO)6 InputStreamReader (java.io.InputStreamReader)2 ArrayList (java.util.ArrayList)2 SyncopeClientException (org.apache.syncope.common.lib.SyncopeClientException)2 ItemTO (org.apache.syncope.common.lib.to.ItemTO)2 Element (org.w3c.dom.Element)2 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)1 ObjectNode (com.fasterxml.jackson.databind.node.ObjectNode)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 File (java.io.File)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 OutputStream (java.io.OutputStream)1 OutputStreamWriter (java.io.OutputStreamWriter)1 Serializable (java.io.Serializable)1 BigInteger (java.math.BigInteger)1 StandardCharsets (java.nio.charset.StandardCharsets)1 FileSystems (java.nio.file.FileSystems)1 Files (java.nio.file.Files)1 Path (java.nio.file.Path)1