public class CompositePublicKey
extends java.lang.Object
implements java.security.PublicKey
| Constructor and Description |
|---|
CompositePublicKey(ASN1ObjectIdentifier algorithmIdentifier,
java.security.PublicKey... keys)
Create a composite public key which corresponds to a composite signature algorithm in algorithmIdentifier.
|
CompositePublicKey(java.security.PublicKey... keys)
Create a composite public key from an array of PublicKeys.
|
CompositePublicKey(SubjectPublicKeyInfo keyInfo)
Create a composite public key from a SubjectPublicKeyInfo.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
ASN1ObjectIdentifier |
getAlgorithmIdentifier() |
byte[] |
getEncoded()
Returns the composite public key encoded as a SubjectPublicKeyInfo.
|
java.lang.String |
getFormat() |
java.util.List<java.security.PublicKey> |
getPublicKeys()
Return a list of the component public keys making up this composite.
|
int |
hashCode() |
public CompositePublicKey(java.security.PublicKey... keys)
keys - The component public keys.public CompositePublicKey(ASN1ObjectIdentifier algorithmIdentifier, java.security.PublicKey... keys)
algorithmIdentifier - keys - public CompositePublicKey(SubjectPublicKeyInfo keyInfo)
keyInfo - SubjectPublicKeyInfo object containing a composite public key.public java.util.List<java.security.PublicKey> getPublicKeys()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic ASN1ObjectIdentifier getAlgorithmIdentifier()
public java.lang.String getFormat()
getFormat in interface java.security.Keypublic byte[] getEncoded()
getEncoded in interface java.security.Keypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object