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, tokenHeaderFields 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, hasClaim, hashCode, hasHeaderParameter, isExpired, isXsuaaToken, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sap.cloud.security.token.Token
getAppTid, getAttributeFromClaimAsString, getAttributeFromClaimAsStringList, getAudiences, getClientId, getGrantType, getZoneId
-
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_ISSUERmust 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.ISSUERinstead to get the custom domain if one is used.- Returns:
- value of claim
TokenClaims.IAS_ISSUERif exists, otherwise value ofToken.getIssuer()
-
getCnfX509Thumbprint
-