Search in sources :

Example 1 with SAML2ServiceProvider

use of org.wso2.carbon.identity.api.server.application.management.v1.SAML2ServiceProvider in project identity-api-server by wso2.

the class ApiModelToSAMLSSOServiceProvider method apply.

@Override
public SAMLSSOServiceProviderDTO apply(SAML2ServiceProvider samlModel) {
    SAMLSSOServiceProviderDTO dto = new SAMLSSOServiceProviderDTO();
    dto.setIssuer(samlModel.getIssuer());
    dto.setIssuerQualifier(samlModel.getServiceProviderQualifier());
    dto.setAssertionConsumerUrls(getAssertionConsumerUrls(samlModel));
    dto.setDefaultAssertionConsumerUrl(getDefaultAssertionConsumerUrl(samlModel));
    dto.setIdpEntityIDAlias(samlModel.getIdpEntityIdAlias());
    updateSingleSignOnProfile(dto, samlModel.getSingleSignOnProfile());
    updateAttributeProfile(dto, samlModel.getAttributeProfile());
    updateSingleLogoutProfile(dto, samlModel.getSingleLogoutProfile());
    updateRequestSignatureValidationConfig(dto, samlModel.getRequestValidation());
    updateResponseSigningConfig(dto, samlModel.getResponseSigning());
    setIfNotNull(samlModel.getEnableAssertionQueryProfile(), dto::setAssertionQueryRequestProfileEnabled);
    dto.setAssertionQueryRequestProfileEnabled(samlModel.getEnableAssertionQueryProfile());
    return dto;
}
Also used : SAMLSSOServiceProviderDTO(org.wso2.carbon.identity.sso.saml.dto.SAMLSSOServiceProviderDTO)

Aggregations

SAMLSSOServiceProviderDTO (org.wso2.carbon.identity.sso.saml.dto.SAMLSSOServiceProviderDTO)1