Package org.bouncycastle.jcajce
Class CompositePrivateKey
- java.lang.Object
-
- org.bouncycastle.jcajce.CompositePrivateKey
-
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,Destroyable
public class CompositePrivateKey extends Object implements PrivateKey
A composite private key class.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.security.PrivateKey
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description CompositePrivateKey(PrivateKey... keys)
Create a composite key containing a single private key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAlgorithm()
byte[]
getEncoded()
String
getFormat()
List<PrivateKey>
getPrivateKeys()
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 Detail
-
CompositePrivateKey
public CompositePrivateKey(PrivateKey... keys)
Create a composite key containing a single private key.- Parameters:
keys
- the private keys the composite private key wraps.
-
-
Method Detail
-
getPrivateKeys
public List<PrivateKey> getPrivateKeys()
Return a list of the component private keys making up this composite.- Returns:
- an immutable list of private keys.
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceKey
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfaceKey
-
-