public class CompositePublicKey
extends java.lang.Object
implements java.security.PublicKey
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositePublicKey.Builder |
| Constructor and Description |
|---|
CompositePublicKey(AlgorithmIdentifier algorithmIdentifier,
java.security.PublicKey... keys)
Create a composite public key which corresponds to a composite signature algorithm in algorithmIdentifier.
|
CompositePublicKey(ASN1ObjectIdentifier algorithmIdentifier,
java.security.PublicKey... keys) |
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 |
|---|---|
static CompositePublicKey.Builder |
builder(ASN1ObjectIdentifier compAlgOid) |
static CompositePublicKey.Builder |
builder(java.lang.String algorithmName) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlgorithm()
Return the name the composite algorithm this key belongs to is registered under, or null if
the key's algorithm is not one of the composite signature or composite KEM parameter sets
(the legacy generic composite key OIDs have no registered name of their own).
|
AlgorithmIdentifier |
getAlgorithmIdentifier() |
byte[] |
getEncoded()
Returns the composite public key encoded as a SubjectPublicKeyInfo.
|
java.lang.String |
getFormat() |
java.util.List<java.security.Provider> |
getProviders()
Return a list of the providers supporting the component private keys.
|
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)
public CompositePublicKey(AlgorithmIdentifier algorithmIdentifier, java.security.PublicKey... keys)
algorithmIdentifier - keys - public CompositePublicKey(SubjectPublicKeyInfo keyInfo)
keyInfo - SubjectPublicKeyInfo object containing a composite public key.public static CompositePublicKey.Builder builder(ASN1ObjectIdentifier compAlgOid)
public static CompositePublicKey.Builder builder(java.lang.String algorithmName)
public java.util.List<java.security.PublicKey> getPublicKeys()
public java.util.List<java.security.Provider> getProviders()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic AlgorithmIdentifier 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 obj)
equals in class java.lang.Object