Package org.bouncycastle.jcajce
Class CompositePrivateKey
java.lang.Object
org.bouncycastle.jcajce.CompositePrivateKey
- All Implemented Interfaces:
Serializable,Key,PrivateKey,Destroyable
A composite private key class.
- See Also:
-
Field Summary
Fields inherited from interface java.security.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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.security.auth.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
public int hashCode() -
equals
-