Class XsUaaToken

java.lang.Object
com.sap.cds.feature.xsuaa.XsUaaToken

public class XsUaaToken extends Object
A parser that converts Base64-encoded bearer tokens issued by XSUAA.
  • Method Details

    • parse

      public static XsUaaToken parse(String authorizationHeader)
      Tries to extract the token representation from the raw authorization header value.
      Parameters:
      authorizationHeader - The authorization header value
      Returns:
      The token representation
      Throws:
      IllegalArgumentException - in case the token could not be parsed.
    • getId

      public String getId()
    • getName

      public String getName()
    • getTenant

      public String getTenant()
    • getGrantType

      public String getGrantType()
    • getClientId

      public String getClientId()
    • getScopes

      public List<String> getScopes()
    • getUserAttributes

      public Map<String,List<String>> getUserAttributes()
    • getSystemAttributes

      public Map<String,List<String>> getSystemAttributes()
    • getExtensionAttributes

      public Map<String,Object> getExtensionAttributes()
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
    • toString

      public String toString()
      Overrides:
      toString in class Object