Package org.bouncycastle.jcajce
Class CompositePublicKey
- java.lang.Object
-
- org.bouncycastle.jcajce.CompositePublicKey
-
- All Implemented Interfaces:
Serializable
,Key
,PublicKey
public class CompositePublicKey extends Object implements PublicKey
A composite key class.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface java.security.PublicKey
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description CompositePublicKey(PublicKey... keys)
Create a composite key containing a single public 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<PublicKey>
getPublicKeys()
Return a list of the component private keys making up this composite.int
hashCode()
-
-
-
Constructor Detail
-
CompositePublicKey
public CompositePublicKey(PublicKey... keys)
Create a composite key containing a single public key.- Parameters:
keys
- the public keys the composite key wraps.
-
-
Method Detail
-
getPublicKeys
public List<PublicKey> getPublicKeys()
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
-
-