Class ByteArrayKeyHolder
- java.lang.Object
-
- com.adobe.internal.pdftoolkit.core.credentials.impl.ByteArrayKeyHolder
-
- All Implemented Interfaces:
PrivateKeyHolder
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 Summary
Constructors Constructor Description ByteArrayKeyHolder(byte[] key, java.lang.String algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
byte[]
getDerEncodedKey()
PrivateKeyHolder
getPrivateKeyHolder()
No-op method that just returns the PrivateKeyHolder.void
setAlgorithm(java.lang.String algorithm)
void
setDerEncodedKey(byte[] derEncodedKey)
-
-
-
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)
-
getPrivateKeyHolder
public PrivateKeyHolder getPrivateKeyHolder()
Description copied from interface:PrivateKeyHolder
No-op method that just returns the PrivateKeyHolder.- Specified by:
getPrivateKeyHolder
in interfacePrivateKeyHolder
- Returns:
- PrivateKeyHolder
-
-