Class ByteArrayKeyHolder

  • All Implemented Interfaces:

    public class ByteArrayKeyHolder
    extends java.lang.Object
    implements PrivateKeyHolder
    The ByteArrayKeyHolder contains the bytes representing the DER encoded PKCS8 unencrypted PrivateKey and the wrapping format of the key - whether it is RSA or DSA.
    • Constructor Detail

      • ByteArrayKeyHolder

        public ByteArrayKeyHolder​(byte[] key,
                                  java.lang.String algorithm)
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(java.lang.String algorithm)
      • getDerEncodedKey

        public byte[] getDerEncodedKey()
      • setDerEncodedKey

        public void setDerEncodedKey​(byte[] derEncodedKey)