Class ScopeService


  • @Named
    public class ScopeService
    extends Object
    Author:
    Javier Rojas Blum Date: 07.05.2012, Yuriy Movchan Date: 2016/04/26
    • Constructor Detail

      • ScopeService

        public ScopeService()
    • Method Detail

      • getAllScopesList

        public List<Scope> getAllScopesList()
        returns a list of all scopes
        Returns:
        list of scopes
      • getDefaultScopesDn

        public List<String> getDefaultScopesDn()
      • getScopeByDn

        public Scope getScopeByDn​(String dn)
        returns Scope by Dn
        Returns:
        Scope
      • getScopeByDnSilently

        public Scope getScopeByDnSilently​(String dn)
        returns Scope by Dn
        Returns:
        Scope
      • getScopeById

        public Scope getScopeById​(String id)
        Get scope by DisplayName
        Parameters:
        id -
        Returns:
        scope
      • getScopeByClaim

        public List<Scope> getScopeByClaim​(String claimDn)
        Get scope by jsClaims
        Parameters:
        claimDn -
        Returns:
        List of scope
      • persist

        public void persist​(Scope scope)
      • getClaims

        public Map<String,​Object> getClaims​(io.jans.as.common.model.common.User user,
                                                  Scope scope)
                                           throws io.jans.as.model.exception.InvalidClaimException
        Throws:
        io.jans.as.model.exception.InvalidClaimException