public class InfinispanIDM extends Object implements IdentityManager
Modifier and Type | Field and Description |
---|---|
protected org.infinispan.Cache |
cache |
Constructor and Description |
---|
InfinispanIDM(org.infinispan.Cache cache) |
public Realm getRealm(String id)
getRealm
in interface IdentityManager
public List<Realm> getRealmsByName(String name)
getRealmsByName
in interface IdentityManager
public Realm create(Realm realm)
create
in interface IdentityManager
public void update(Realm realm)
update
in interface IdentityManager
public void delete(Realm realm)
delete
in interface IdentityManager
public List<RequiredCredential> getRequiredCredentials(Realm realm)
getRequiredCredentials
in interface IdentityManager
public RequiredCredential create(Realm realm, RequiredCredential cred)
create
in interface IdentityManager
public RequiredCredential getRealmCredential(String id)
getRealmCredential
in interface IdentityManager
public void update(RequiredCredential cred)
update
in interface IdentityManager
public void delete(RequiredCredential cred)
delete
in interface IdentityManager
public User create(Realm realm, User user)
create
in interface IdentityManager
public User getUser(Realm realm, String username)
getUser
in interface IdentityManager
public void update(User user)
update
in interface IdentityManager
public void delete(User user)
delete
in interface IdentityManager
public UserCredential create(User user, UserCredential cred)
create
in interface IdentityManager
public List<UserCredential> getCredentials(User user)
getCredentials
in interface IdentityManager
public UserCredential getCredential(String id)
getCredential
in interface IdentityManager
public void update(UserCredential cred)
update
in interface IdentityManager
public void delete(UserCredential cred)
delete
in interface IdentityManager
public UserAttribute getUserAttribute(String id)
getUserAttribute
in interface IdentityManager
public UserAttribute create(User user, UserAttribute attribute)
create
in interface IdentityManager
public void update(UserAttribute attribute)
update
in interface IdentityManager
public void delete(UserAttribute attribute)
delete
in interface IdentityManager
public Resource getResource(String id)
getResource
in interface IdentityManager
public Resource getResource(Realm realm, String name)
getResource
in interface IdentityManager
public List<Resource> getResources(Realm realm)
getResources
in interface IdentityManager
public Resource create(Realm realm, Resource resource)
create
in interface IdentityManager
public void update(Resource resource)
update
in interface IdentityManager
public void delete(Resource resource)
delete
in interface IdentityManager
public Role getRoleByName(Realm realm, String roleName)
getRoleByName
in interface IdentityManager
public Role getRoleByName(Resource resource, String roleName)
getRoleByName
in interface IdentityManager
public List<Role> getRoles(Realm realm, Resource resource)
getRoles
in interface IdentityManager
public List<Role> getRoles(Realm realm)
getRoles
in interface IdentityManager
public Role getRole(String id)
getRole
in interface IdentityManager
public Role create(Realm realm, Resource resource, String roleName)
create
in interface IdentityManager
public Role create(Realm realm, String roleName)
create
in interface IdentityManager
public void delete(Role role)
delete
in interface IdentityManager
public List<RoleMapping> getRoleMappings(Realm realm)
getRoleMappings
in interface IdentityManager
public List<RoleMapping> getRoleMappings(Realm realm, Resource resource)
getRoleMappings
in interface IdentityManager
public RoleMapping getRoleMapping(Realm realm, User user)
getRoleMapping
in interface IdentityManager
public RoleMapping getRoleMapping(Realm realm, Resource resource, User user)
getRoleMapping
in interface IdentityManager
public RoleMapping getRoleMapping(String id)
getRoleMapping
in interface IdentityManager
public RoleMapping create(Realm realm, User user, RoleMapping mapping)
create
in interface IdentityManager
public RoleMapping create(Realm realm, Resource resource, User user, RoleMapping mapping)
create
in interface IdentityManager
public void delete(RoleMapping role)
delete
in interface IdentityManager
public List<ScopeMapping> getScopeMappings(Realm realm)
getScopeMappings
in interface IdentityManager
public List<ScopeMapping> getScopeMappings(Realm realm, Resource resource)
getScopeMappings
in interface IdentityManager
public ScopeMapping getScopeMapping(Realm realm, User user)
getScopeMapping
in interface IdentityManager
public ScopeMapping getScopeMapping(Realm realm, Resource resource, User user)
getScopeMapping
in interface IdentityManager
public ScopeMapping getScopeMapping(String id)
getScopeMapping
in interface IdentityManager
public ScopeMapping create(Realm realm, User user, ScopeMapping mapping)
create
in interface IdentityManager
public ScopeMapping create(Realm realm, Resource resource, User user, ScopeMapping mapping)
create
in interface IdentityManager
public void delete(ScopeMapping scope)
delete
in interface IdentityManager
Copyright © 2018 JBoss by Red Hat. All rights reserved.