Package org.bouncycastle.jcajce
Class CompositePublicKey
- java.lang.Object
-
- org.bouncycastle.jcajce.CompositePublicKey
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Key
,java.security.PublicKey
public class CompositePublicKey extends java.lang.Object implements java.security.PublicKey
A composite key class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositePublicKey(java.security.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(java.lang.Object o)
java.lang.String
getAlgorithm()
byte[]
getEncoded()
java.lang.String
getFormat()
java.util.List<java.security.PublicKey>
getPublicKeys()
Return a list of the component private keys making up this composite.int
hashCode()
-
-
-
Method Detail
-
getPublicKeys
public java.util.List<java.security.PublicKey> 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 interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormat
in interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in interfacejava.security.Key
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-