Package com.sap.cloud.security.xsuaa
Class XsuaaServiceConfigurationDefault
java.lang.Object
com.sap.cloud.security.xsuaa.XsuaaServiceConfigurationDefault
- All Implemented Interfaces:
OAuth2ServiceConfiguration,XsuaaServiceConfiguration
@Configuration
public class XsuaaServiceConfigurationDefault
extends Object
implements XsuaaServiceConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()XS application identifiergetProperty(String name) This only supports read from VCAP_SERVICES in cf environment or read from secrets in kubernetes environment.Domain of the xsuaa authentication domainBase URL of the xsuaa service instance.The pem encoded public key for offline token verification.booleanhasProperty(String name) This only supports VCAP_SERVICES in cf environment or read from secrets in kubernetes environment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cloud.security.config.OAuth2ServiceConfiguration
getDomainsMethods inherited from interface com.sap.cloud.security.xsuaa.XsuaaServiceConfiguration
getProperties, getService, getUrl, isLegacyMode
-
Constructor Details
-
XsuaaServiceConfigurationDefault
public XsuaaServiceConfigurationDefault()
-
-
Method Details
-
getClientId
- Specified by:
getClientIdin interfaceOAuth2ServiceConfiguration
-
getClientSecret
- Specified by:
getClientSecretin interfaceOAuth2ServiceConfiguration
-
getUaaUrl
Description copied from interface:XsuaaServiceConfigurationBase URL of the xsuaa service instance. In multi tenancy scenarios this is the url where the service instance was created.- Specified by:
getUaaUrlin interfaceXsuaaServiceConfiguration- Returns:
- uaa url
-
getAppId
Description copied from interface:XsuaaServiceConfigurationXS application identifier- Specified by:
getAppIdin interfaceXsuaaServiceConfiguration- Returns:
- xs application id
-
getUaaDomain
Description copied from interface:XsuaaServiceConfigurationDomain of the xsuaa authentication domain- Specified by:
getUaaDomainin interfaceXsuaaServiceConfiguration- Returns:
- uaaDomain
-
getVerificationKey
Description copied from interface:XsuaaServiceConfigurationThe pem encoded public key for offline token verification.- Specified by:
getVerificationKeyin interfaceXsuaaServiceConfiguration- Returns:
- the pem encoded verification key
-
getCredentialType
- Specified by:
getCredentialTypein interfaceOAuth2ServiceConfiguration
-
getCertUrl
- Specified by:
getCertUrlin interfaceOAuth2ServiceConfiguration
-
getClientIdentity
- Specified by:
getClientIdentityin interfaceOAuth2ServiceConfiguration- Specified by:
getClientIdentityin interfaceXsuaaServiceConfiguration
-
getProperty
This only supports read from VCAP_SERVICES in cf environment or read from secrets in kubernetes environment.- Specified by:
getPropertyin interfaceOAuth2ServiceConfiguration- Specified by:
getPropertyin interfaceXsuaaServiceConfiguration- Parameters:
name- of the credential property- Returns:
- the property value or null if not found
-
hasProperty
This only supports VCAP_SERVICES in cf environment or read from secrets in kubernetes environment.- Specified by:
hasPropertyin interfaceOAuth2ServiceConfiguration- Specified by:
hasPropertyin interfaceXsuaaServiceConfiguration- Parameters:
name- of the credential property- Returns:
- false if property doesn't exist
-