Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce
Class CompositePrivateKey

java.lang.Object
  |
  +--org.bouncycastle.jcajce.CompositePrivateKey
All Implemented Interfaces:
java.security.Key, java.security.PrivateKey, java.io.Serializable

public class CompositePrivateKey
extends java.lang.Object
implements java.security.PrivateKey

A composite private key class.

See Also:
Serialized Form

Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Constructor Summary
CompositePrivateKey(java.security.PrivateKey[] keys)
          Create a composite key containing a single private key.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 java.util.List 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
 

Constructor Detail

CompositePrivateKey

public CompositePrivateKey(java.security.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 java.util.List 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:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

Bouncy Castle Cryptography Library 1.77.0