Class AcmeChallenge

    • Constructor Detail

      • AcmeChallenge

        public AcmeChallenge​(AcmeChallenge.Type type,
                             String url,
                             String token,
                             String identifierType,
                             String identifierValue)
        Construct a new instance.
        Parameters:
        type - the challenge type (must not be null)
        url - the challenge URL (must not be null)
        token - the challenge token (must not be null)
        identifierType - the identifier type associated with the challenge (must not be null)
        identifierValue - the identifier value associated with the challenge (must not be null)
    • Method Detail

      • getType

        public AcmeChallenge.Type getType()
        Get the challenge type.
        Returns:
        the challenge type
      • getUrl

        public String getUrl()
        Get the challenge URL.
        Returns:
        the challenge URL
      • getToken

        public String getToken()
        Get the challenge token.
        Returns:
        the challenge token
      • getIdentifierType

        public String getIdentifierType()
        Get the identifier type associated with the challenge.
        Returns:
        the identifier type associated with the challenge
      • getIdentifierValue

        public String getIdentifierValue()
        Get the identifier value associated with the challenge.
        Returns:
        the identifier value associated with the challenge
      • getKeyAuthorization

        public String getKeyAuthorization​(AcmeAccount account)
                                   throws AcmeException
        Get the key authorization string for this challenge.
        Parameters:
        account - the ACME account information to use (must not be null)
        Returns:
        the key authorization string for this challenge
        Throws:
        AcmeException - if the key authorization string cannot be determined