Package org.bouncycastle.jcajce
Class CompositePrivateKey
- java.lang.Object
-
- org.bouncycastle.jcajce.CompositePrivateKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PrivateKey,javax.security.auth.Destroyable
public class CompositePrivateKey extends java.lang.Object implements java.security.PrivateKeyA composite private key class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositePrivateKey(java.security.PrivateKey... keys)Create a composite key containing a single private key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()java.util.List<java.security.PrivateKey>getPrivateKeys()Return a list of the component private keys making up this composite.inthashCode()
-
-
-
Method Detail
-
getPrivateKeys
public java.util.List<java.security.PrivateKey> getPrivateKeys()
Return a list of the component private keys making up this composite.- Returns:
- an immutable list of private keys.
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-