Interface OAuth2ServiceConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault URI
Cert URL of the OAuth2 identity service instance.Client id of identity service instance.default ClientIdentity
Client Identity of xsuaa instanceClient secret of identity service instance.default CredentialType
Credential type as defined in "oauth2-configuration" of the xsuaa service instance security descriptor.Domains of the OAuth2 identity service instance.Returns all properties of the configuration as a map.getProperty
(String name) Returns the value of the given property as string.Returns the identityService
of this configuration.getUrl()
Base URL of the OAuth2 identity service instance.boolean
hasProperty
(String name) Returns true if the configuration contains the given property.boolean
Returns true, in case of XSUAA service runs in legacy mode.
-
Method Details
-
getClientId
-
getClientSecret
-
getClientIdentity
Client Identity of xsuaa instance- Returns:
- ClientIdentity object
-
getCredentialType
Credential type as defined in "oauth2-configuration" of the xsuaa service instance security descriptor.- Returns:
- value of credential-type field
-
getUrl
URI getUrl()Base URL of the OAuth2 identity service instance. In multi tenancy scenarios this is the url where the service instance was created.- Returns:
- base url, e.g. https://paastenant.idservice.com"
-
getCertUrl
Cert URL of the OAuth2 identity service instance.- Returns:
- cert url, e.g. https://paastenant.idservice.com"
-
getDomains
-
getProperty
Returns the value of the given property as string.- Parameters:
name
- the name of the property. You can find constants inServiceConstants
- Returns:
- the string value of the given property or null if the property does not exist.
-
getProperties
-
hasProperty
Returns true if the configuration contains the given property.- Parameters:
name
- the name of the property. You can find constants inServiceConstants
- Returns:
- true if the property does not exist.
-
getService
-
isLegacyMode
boolean isLegacyMode()Returns true, in case of XSUAA service runs in legacy mode.- Returns:
- true in case it runs in legacy mode.
-