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;
}
Aggregations