Class CompositePrivateKey
java.lang.Object
org.bouncycastle.jcajce.CompositePrivateKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PrivateKey, Destroyable
A composite private key class.
- See Also:
-
Field Summary
Fields inherited from interface PrivateKey
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionCompositePrivateKey(PrivateKey... keys) Create a composite key containing a single private key. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Return a list of the component private keys making up this composite.inthashCode()Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsymmetricKey
getParamsMethods inherited from interface Destroyable
destroy, isDestroyed
-
Constructor Details
-
CompositePrivateKey
Create a composite key containing a single private key.- Parameters:
keys- the private keys the composite private key wraps.
-
-
Method Details
-
getPrivateKeys
Return a list of the component private keys making up this composite.- Returns:
- an immutable list of private keys.
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
hashCode
-
equals
-