Bouncy Castle Cryptography Library 1.81

org.bouncycastle.jcajce
Class CompositePublicKey

java.lang.Object
  extended byorg.bouncycastle.jcajce.CompositePublicKey
All Implemented Interfaces:
java.security.Key, java.security.PublicKey, java.io.Serializable

public class CompositePublicKey
extends java.lang.Object
implements java.security.PublicKey

A composite key class.

See Also:
Serialized Form

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

CompositePublicKey

public CompositePublicKey(java.security.PublicKey[] keys)
Create a composite key containing a single public key.

Parameters:
keys - the public keys the composite key wraps.
Method Detail

getPublicKeys

public java.util.List getPublicKeys()
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

getAlgorithmIdentifier

public AlgorithmIdentifier getAlgorithmIdentifier()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)

Bouncy Castle Cryptography Library 1.81