Class CSCAuthContext


  • public class CSCAuthContext
    extends Object
    Parameters for representing CSC authorization context.
    • Constructor Detail

      • CSCAuthContext

        public CSCAuthContext​(String accessToken)
        Creates a new CSCAuthContext instance, default value of token type is set as "Bearer".
        Parameters:
        accessToken - the access token
      • CSCAuthContext

        public CSCAuthContext​(String accessToken,
                              String tokenType)
        Creates a new CSCAuthContext instance.
        Parameters:
        accessToken - the access token
        tokenType - the token type
    • Method Detail

      • getAccessToken

        public String getAccessToken()
        Returns the access token required for CSC based services.
        Returns:
        CSC Provider access token
      • getTokenType

        public String getTokenType()
        Returns the type of access token; supported type is Bearer.
        Returns:
        token type