@Singleton public class IdentityManager extends Object
Constructor and Description |
---|
IdentityManager(OAuth2ProviderSettingsFactory providerSettingsFactory)
Constructs a new IdentityManager.
|
Modifier and Type | Method and Description |
---|---|
AMIdentity |
getClientIdentity(String clientName,
String realm)
Gets a client's identity.
|
AMIdentity |
getResourceOwnerIdentity(String username,
String realm)
Gets a resource owner's identity.
|
@Inject public IdentityManager(OAuth2ProviderSettingsFactory providerSettingsFactory)
providerSettingsFactory
- An instance of the OAuth2ProviderSettingsFactory.public AMIdentity getResourceOwnerIdentity(String username, String realm) throws UnauthorizedClientException
username
- The resource owner's username.realm
- The resource owner's realm.UnauthorizedClientException
- If the resource owner's identity cannot be found.public AMIdentity getClientIdentity(String clientName, String realm) throws UnauthorizedClientException
clientName
- The client's name.realm
- The client's realm.UnauthorizedClientException
- If the client's identity cannot be found.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.