Class Conjur


  • public class Conjur
    extends Object
    Entry point for the Conjur API client.
    • Constructor Summary

      Constructors 
      Constructor Description
      Conjur()
      Create a Conjur instance that uses credentials from the system properties
      Conjur​(Credentials credentials)
      Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
      Conjur​(Credentials credentials, SSLContext sslContext)
      Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
      Conjur​(Token token)
      Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
      Conjur​(Token token, SSLContext sslContext)
      Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
      Conjur​(String username, String password)
      Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
      Conjur​(String username, String password, String authnUrl)
      Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
      Conjur​(String username, String password, String authnUrl, SSLContext sslContext)
      Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
      Conjur​(String username, String password, SSLContext sslContext)
      Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
      Conjur​(SSLContext sslContext)
      Create a Conjur instance that uses credentials from the system properties
    • Constructor Detail

      • Conjur

        public Conjur()
        Create a Conjur instance that uses credentials from the system properties
      • Conjur

        public Conjur​(SSLContext sslContext)
        Create a Conjur instance that uses credentials from the system properties
        Parameters:
        sslContext - the SSLContext to use for connections to Conjur server
      • Conjur

        public Conjur​(String username,
                      String password)
        Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
        Parameters:
        username - username for the Conjur identity to authenticate as
        password - password or api key for the Conjur identity to authenticate as
      • Conjur

        public Conjur​(String username,
                      String password,
                      SSLContext sslContext)
        Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
        Parameters:
        username - username for the Conjur identity to authenticate as
        password - password or api key for the Conjur identity to authenticate as
        sslContext - the SSLContext to use for connections to Conjur server
      • Conjur

        public Conjur​(String username,
                      String password,
                      String authnUrl)
        Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
        Parameters:
        username - username for the Conjur identity to authenticate as
        password - password or api key for the Conjur identity to authenticate as
        authnUrl - the conjur authentication url
      • Conjur

        public Conjur​(String username,
                      String password,
                      String authnUrl,
                      SSLContext sslContext)
        Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
        Parameters:
        username - username for the Conjur identity to authenticate as
        password - password or api key for the Conjur identity to authenticate as
        authnUrl - the conjur authentication url
        sslContext - the SSLContext to use for connections to Conjur server
      • Conjur

        public Conjur​(Credentials credentials)
        Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
        Parameters:
        credentials - the conjur identity to authenticate as
      • Conjur

        public Conjur​(Credentials credentials,
                      SSLContext sslContext)
        Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
        Parameters:
        credentials - the conjur identity to authenticate as
        sslContext - the SSLContext to use for connections to Conjur server
      • Conjur

        public Conjur​(Token token)
        Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
        Parameters:
        token - the conjur authorization token to use
      • Conjur

        public Conjur​(Token token,
                      SSLContext sslContext)
        Create a Conjur instance that uses a ResourceClient & an AuthnClient constructed with the given credentials
        Parameters:
        token - the conjur authorization token to use
        sslContext - the SSLContext to use for connections to Conjur server
    • Method Detail

      • variables

        public Variables variables()
        Get a Variables instance configured with the same parameters as this instance.
        Returns:
        the variables instance