Package com.sap.cloud.security.config
Interface OAuth2ServiceConfiguration
public interface OAuth2ServiceConfiguration
Provides information of the identity
Service
.-
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
String getClientId()Client id of identity service instance.- Returns:
- client identifier
-
getClientSecret
String getClientSecret()Client secret of identity service instance.- Returns:
- client secret
-
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
Domains of the OAuth2 identity service instance.- Returns:
- list of domain, e.g."idservice.com".
-
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
Returns all properties of the configuration as a map.- Returns:
- all properties as map.
-
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
Service getService()Returns the identityService
of this configuration.- Returns:
- the service.
-
isLegacyMode
boolean isLegacyMode()Returns true, in case of XSUAA service runs in legacy mode.- Returns:
- true in case it runs in legacy mode.
-