Search in sources :

Example 1 with ScopeBindingDTO

use of org.wso2.carbon.identity.oauth.scope.endpoint.dto.ScopeBindingDTO in project identity-inbound-auth-oauth by wso2-extensions.

the class ScopeUtils method getScopeBindingDTOs.

public static List<ScopeBindingDTO> getScopeBindingDTOs(List<ScopeBinding> scopeBindings) {
    List<ScopeBindingDTO> scopeBindingDTOs = new ArrayList<>();
    for (ScopeBinding scopeBinding : scopeBindings) {
        ScopeBindingDTO scopeBindingDTO = new ScopeBindingDTO();
        scopeBindingDTO.setBindingType(scopeBinding.getBindingType());
        scopeBindingDTO.setBinding(scopeBinding.getBindings());
        scopeBindingDTOs.add(scopeBindingDTO);
    }
    return scopeBindingDTOs;
}
Also used : ArrayList(java.util.ArrayList) ScopeBindingDTO(org.wso2.carbon.identity.oauth.scope.endpoint.dto.ScopeBindingDTO) ScopeBinding(org.wso2.carbon.identity.oauth2.bean.ScopeBinding)

Aggregations

ArrayList (java.util.ArrayList)1 ScopeBindingDTO (org.wso2.carbon.identity.oauth.scope.endpoint.dto.ScopeBindingDTO)1 ScopeBinding (org.wso2.carbon.identity.oauth2.bean.ScopeBinding)1