Package org.gluu.oxauth.service
Class ScopeService
- java.lang.Object
-
- org.gluu.oxauth.service.ScopeService
-
@ApplicationScoped public class ScopeService extends java.lang.Object
- Author:
- Javier Rojas Blum Date: 07.05.2012, Yuriy Movchan Date: 2016/04/26
-
-
Constructor Summary
Constructors Constructor Description ScopeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Scope>
getAllScopesList()
returns a list of all scopesjava.util.Map<java.lang.String,java.lang.Object>
getClaims(User user, Scope scope)
java.util.List<java.lang.String>
getDefaultScopesDn()
java.util.List<Scope>
getScopeByClaim(java.lang.String claimDn)
Get scope by oxAuthClaimsScope
getScopeByDn(java.lang.String dn)
returns Scope by DnScope
getScopeByDnSilently(java.lang.String dn)
returns Scope by DnScope
getScopeById(java.lang.String id)
Get scope by DisplayNamejava.util.List<java.lang.String>
getScopeIdsByDns(java.util.List<java.lang.String> dns)
java.util.List<Scope>
getScopesByClaim(java.util.List<Scope> scopes, java.lang.String claimDn)
java.util.List<java.lang.String>
getScopesDn(java.util.List<java.lang.String> scopeNames)
void
persist(Scope scope)
-
-
-
Method Detail
-
getAllScopesList
public java.util.List<Scope> getAllScopesList()
returns a list of all scopes- Returns:
- list of scopes
-
getDefaultScopesDn
public java.util.List<java.lang.String> getDefaultScopesDn()
-
getScopesDn
public java.util.List<java.lang.String> getScopesDn(java.util.List<java.lang.String> scopeNames)
-
getScopeIdsByDns
public java.util.List<java.lang.String> getScopeIdsByDns(java.util.List<java.lang.String> dns)
-
getScopeByDn
public Scope getScopeByDn(java.lang.String dn)
returns Scope by Dn- Returns:
- Scope
-
getScopeByDnSilently
public Scope getScopeByDnSilently(java.lang.String dn)
returns Scope by Dn- Returns:
- Scope
-
getScopeById
public Scope getScopeById(java.lang.String id)
Get scope by DisplayName- Parameters:
id
-- Returns:
- scope
-
getScopeByClaim
public java.util.List<Scope> getScopeByClaim(java.lang.String claimDn)
Get scope by oxAuthClaims- Parameters:
claimDn
-- Returns:
- List of scope
-
getScopesByClaim
public java.util.List<Scope> getScopesByClaim(java.util.List<Scope> scopes, java.lang.String claimDn)
-
persist
public void persist(Scope scope)
-
getClaims
public java.util.Map<java.lang.String,java.lang.Object> getClaims(User user, Scope scope) throws InvalidClaimException
- Throws:
InvalidClaimException
-
-