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 TypeMethodDescriptionboolean
byte[]
Return a list of the component private keys making up this composite.int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
hashCode
public int hashCode() -
equals
-