Package org.opendaylight.aaa.shiro.idm
Class IdmLightProxy
java.lang.Object
org.opendaylight.aaa.shiro.idm.IdmLightProxy
- All Implemented Interfaces:
ClaimCache
,CredentialAuth<PasswordCredentials>
,IdMService
,PasswordCredentialAuth
@Singleton
public class IdmLightProxy
extends Object
implements PasswordCredentialAuth, IdMService, ClaimCache
An OSGi proxy for the IdmLight server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(PasswordCredentials creds) Authenticate a claim with the given credentials and domain scope.void
clear()
Clears the cache of any active claims.listDomains
(String userId) List all domains that the given user has at least one role on.List all roles that the given user has on the given domain.List all user IDs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.aaa.api.PasswordCredentialAuth
credentialClass
-
Constructor Details
-
IdmLightProxy
-
-
Method Details
-
authenticate
Description copied from interface:CredentialAuth
Authenticate a claim with the given credentials and domain scope.- Specified by:
authenticate
in interfaceCredentialAuth<PasswordCredentials>
- Parameters:
creds
- credentials- Returns:
- authenticated claim
-
clear
public void clear()Clears the cache of any active claims.- Specified by:
clear
in interfaceClaimCache
-
listDomains
Description copied from interface:IdMService
List all domains that the given user has at least one role on.- Specified by:
listDomains
in interfaceIdMService
- Parameters:
userId
- id of user- Returns:
- list of all domains that the given user has access to
-
listRoles
Description copied from interface:IdMService
List all roles that the given user has on the given domain.- Specified by:
listRoles
in interfaceIdMService
- Parameters:
userId
- id of userdomainName
- name of domain- Returns:
- list of roles
-
listUserIDs
Description copied from interface:IdMService
List all user IDs.- Specified by:
listUserIDs
in interfaceIdMService
- Returns:
- list of all user IDs
- Throws:
IDMStoreException
- if the user IDs could not be read from an IIDMStore
-