Class JCEDHPublicKey

    • Method Detail

      • getAlgorithm

        public String getAlgorithm()
        Description copied from interface: Key
        Returns the name of the algorithm of this key. If the algorithm is unknown, null is returned.
        Specified by:
        getAlgorithm in interface Key
        Returns:
        the name of the algorithm of this key or null if the algorithm is unknown.
      • getFormat

        public String getFormat()
        Description copied from interface: Key
        Returns the name of the format used to encode this key, or null if it can not be encoded.
        Specified by:
        getFormat in interface Key
        Returns:
        the name of the format used to encode this key, or null if it can not be encoded.
      • getEncoded

        public byte[] getEncoded()
        Description copied from interface: Key
        Returns the encoded form of this key, or null if encoding is not supported by this key.
        Specified by:
        getEncoded in interface Key
        Returns:
        the encoded form of this key, or null if encoding is not supported by this key.
      • getParams

        public DHParameterSpec getParams()
        Description copied from interface: DHKey
        Returns the parameters for this key.
        Specified by:
        getParams in interface DHKey
        Returns:
        the parameters for this key.
      • getY

        public BigInteger getY()
        Description copied from interface: DHPublicKey
        Returns this key's public value Y.
        Specified by:
        getY in interface DHPublicKey
        Returns:
        this key's public value Y.