Class AccessTokenProvider


  • public class AccessTokenProvider
    extends Object
    The type Access token provider.
    Author:
    bnasslahsen
    • Constructor Detail

      • AccessTokenProvider

        public AccessTokenProvider()
    • Method Detail

      • getNewAccessToken

        public com.cyberark.conjur.sdk.AccessToken getNewAccessToken​(com.cyberark.conjur.sdk.ApiClient conjurClient)
        Get new access token access token.
        Parameters:
        conjurClient - the conjur client
        Returns:
        the access token
      • getJwtAccessToken

        public com.cyberark.conjur.sdk.AccessToken getJwtAccessToken​(com.cyberark.conjur.sdk.ApiClient conjurClient,
                                                                     String jwtTokenPath,
                                                                     String authenticatorId)
                                                              throws IOException
        Gets jwt access token.
        Parameters:
        conjurClient - the conjur client
        jwtTokenPath - the jwt token path
        authenticatorId - the authenticator id
        Returns:
        the jwt access token
        Throws:
        IOException - the io exception