Class CryptoType


  • public class CryptoType
    extends Object
    This class represents a way of passing information to the Crypto.getX509Certificates() method. The TYPE enum describes which method to use to retrieve the Certificate(s). The corresponding get accessor must be set accordingly.
    • Constructor Detail

      • CryptoType

        public CryptoType()
        Default constructor
      • CryptoType

        public CryptoType​(CryptoType.TYPE type)
        Constructor with a TYPE argument
        Parameters:
        type - describes which method to use to retrieve a certificate (chain)
    • Method Detail

      • setType

        public void setType​(CryptoType.TYPE type)
        Set the type.
        Parameters:
        type - describes which method to use to retrieve a certificate (chain)
      • getType

        public CryptoType.TYPE getType()
        Get the type
        Returns:
        which method to use to retrieve a certificate (chain)
      • setIssuerSerial

        public void setIssuerSerial​(String issuer,
                                    BigInteger serial)
        Set the Issuer String, and Serial number of the cert (chain) to retrieve.
        Parameters:
        issuer - the issuer String
        serial - the serial number
      • getIssuer

        public String getIssuer()
        Get the issuer String.
        Returns:
        the issuer String
      • getSerial

        public BigInteger getSerial()
        Get the serial number
        Returns:
        the serial number
      • setBytes

        public void setBytes​(byte[] bytes)
        Set the byte[], which could be the SHA1 thumbprint, or SKI bytes of the cert.
        Parameters:
        bytes - an array of bytes
      • getBytes

        public byte[] getBytes()
        Get the array of bytes, which could be the SHA1 thumbprint, or SKI bytes of the cert.
        Returns:
        an array of bytes
      • setSubjectDN

        public void setSubjectDN​(String subjectDN)
        Set the Subject DN of the cert (chain) to locate
        Parameters:
        subjectDN - the Subject DN of the cert (chain) to locate
      • getSubjectDN

        public String getSubjectDN()
        Get the Subject DN of the cert (chain) to locate
        Returns:
        the Subject DN of the cert (chain) to locate
      • setAlias

        public void setAlias​(String alias)
        Set the alias of the cert (chain) to locate.
        Parameters:
        alias - the alias of the cert (chain) to locate.
      • getAlias

        public String getAlias()
        Get the alias of the cert (chain) to locate.
        Returns:
        the alias of the cert (chain) to locate.
      • setEndpoint

        public void setEndpoint​(String endpoint)
        Set the endpoint to locate certificate.
        Parameters:
        endpoint - to locate.
      • getEndpoint

        public String getEndpoint()
        Get the endpoint to locate certificate.
        Returns:
        endpoint to locate certificate.