Class ByteArrayKeyHolder

  • All Implemented Interfaces:
    PrivateKeyHolder

    public class ByteArrayKeyHolder
    extends 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,
                                  String algorithm)
    • Method Detail

      • getAlgorithm

        public String getAlgorithm()
      • setAlgorithm

        public void setAlgorithm​(String algorithm)
      • getDerEncodedKey

        public byte[] getDerEncodedKey()
      • setDerEncodedKey

        public void setDerEncodedKey​(byte[] derEncodedKey)