public class AdmAuthClientIdentity extends ClientIdentity
| Constructor and Description |
|---|
AdmAuthClientIdentity(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String serviceScope)
Initializes an instance of the
AdmAuthClientIdentity class |
AdmAuthClientIdentity(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String serviceScope,
java.lang.String registrationId,
java.lang.String secretKey)
Initializes an instance of the
AdmAuthClientIdentity class |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClientId()
Gets the client Id
|
static java.lang.String |
getServiceScope(java.net.URI baseUri)
Gets the service scope for target service
|
void |
retrieveAccessToken()
Retrieve the access token for hawaii ADM authentication
|
createClientIdentity, createClientIdentity, getRegistrationId, getSecretKey, onRetriveAccessTokenComplete, setCompleteListener, setRegistrationId, setSecretKeypublic AdmAuthClientIdentity(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String serviceScope)
throws HawaiiException
AdmAuthClientIdentity classclientId - ADM client IDclientSecret - ADM client secretserviceScope - service scope for ADMHawaiiExceptionpublic AdmAuthClientIdentity(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String serviceScope,
java.lang.String registrationId,
java.lang.String secretKey)
throws HawaiiException
AdmAuthClientIdentity classclientId - ADM client IDclientSecret - ADM client secretserviceScope - service scope for ADMregistrationId - registration IDsecretKey - secret keyHawaiiExceptionpublic static java.lang.String getServiceScope(java.net.URI baseUri)
baseUriString - base uri of target servicepublic java.lang.String getClientId()
public void retrieveAccessToken()
retrieveAccessToken in class ClientIdentity