Class AuthConfig


  • public class AuthConfig
    extends Object
    Configuration object holding auth information for pushing to Docker
    Since:
    22.07.14
    Author:
    roland
    • Constructor Detail

      • AuthConfig

        public AuthConfig​(String credentialsEncoded,
                          String email)
        Constructor which takes a base64 encoded credentials in the form 'user:password'
        Parameters:
        credentialsEncoded - the docker encoded user and password
        email - the email to use for authentication
      • AuthConfig

        public AuthConfig​(String credentialsEncoded,
                          String email,
                          String identityToken)
        Constructor which takes a base64 encoded credentials in the form 'user:password'
        Parameters:
        credentialsEncoded - the docker encoded user and password
        email - the email to use for authentication
    • Method Detail

      • getUsername

        public String getUsername()
      • getPassword

        public String getPassword()
      • getAuth

        public String getAuth()
      • getIdentityToken

        public String getIdentityToken()
      • toHeaderValue

        public String toHeaderValue()
      • setRegistry

        public void setRegistry​(String registry)
      • toJson

        public String toJson()