Package com.sap.cloud.security.token
Class SapIdToken
java.lang.Object
com.sap.cloud.security.token.AbstractToken
com.sap.cloud.security.token.SapIdToken
- All Implemented Interfaces:
Token
,Serializable
You can get further token claims from here:
TokenClaims
.- See Also:
-
Field Summary
Fields inherited from class com.sap.cloud.security.token.AbstractToken
tokenBody, tokenHeader
Fields inherited from interface com.sap.cloud.security.token.Token
DEFAULT_TOKEN_FACTORY, services
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the token issuer domain that is required to check trust in the issuing identity service.Methods inherited from class com.sap.cloud.security.token.AbstractToken
createPrincipalByName, equals, getClaimAsJsonObject, getClaimAsString, getClaimAsStringList, getClaims, getExpiration, getHeaderParameterAsString, getHeaders, getNotBefore, getTokenValue, getZoneId, hasClaim, hashCode, hasHeaderParameter, isExpired, isXsuaaToken, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sap.cloud.security.token.Token
getAttributeFromClaimAsString, getAttributeFromClaimAsStringList, getAudiences, getClientId, getGrantType
-
Constructor Details
-
SapIdToken
-
SapIdToken
-
-
Method Details
-
getPrincipal
-
getService
-
getIssuer
Gets the token issuer domain that is required to check trust in the issuing identity service. In multi-tenant or single-tenant with custom domain scenarios, claimTokenClaims.IAS_ISSUER
must be used for trust checks instead of claimTokenClaims.ISSUER
. It contains the internal domain of the identity service. External customer domains are not trusted.
UseToken.getClaimAsString(String)
withTokenClaims.ISSUER
instead to get the custom domain if one is used.- Returns:
- value of claim
TokenClaims.IAS_ISSUER
if exists, otherwise value ofToken.getIssuer()
-
getCnfX509Thumbprint
-