Class ProxyCertificateOptions

    • Field Detail

      • DEFAULT_LONG_KEY_LENGTH

        public static final int DEFAULT_LONG_KEY_LENGTH
        See Also:
        Constant Field Values
      • keyLength

        private java.lang.Integer keyLength
      • publicKey

        private java.security.PublicKey publicKey
    • Constructor Detail

      • ProxyCertificateOptions

        public ProxyCertificateOptions​(java.security.cert.X509Certificate[] parentCertChain)
        Create a new proxy cert based on the parent cert chain. Useful when locally creating a proxy from existing cert chain.
        Parameters:
        parentCertChain - parent certificate chain
    • Method Detail

      • setKeyLength

        public void setKeyLength​(int length)
        Sets the length of the keys to be generated, only used if the keys are not set separately. If this method is not used, the default is 1024 bits.
        Parameters:
        length - to be set
      • getKeyLength

        public int getKeyLength()
        Gets the length of the keys to be generated. By default it returns value of DEFAULT_KEY_LENGTH, or, if proxy liftime exceeds LONG_PROXY, DEFAULT_LONG_KEY_LENGTH.
        Returns:
        the currently set key length
      • setPublicKey

        public void setPublicKey​(java.security.PublicKey pubKey)
        Manually sets public key which shall be included in the generated proxy
        Parameters:
        pubKey - the public key to set
      • getPublicKey

        public java.security.PublicKey getPublicKey()
        Returns the manually set public key for the proxy.
        Returns:
        the public key