public class CompositePrivateKey
extends java.lang.Object
implements java.security.PrivateKey
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositePrivateKey.Builder |
| Constructor and Description |
|---|
CompositePrivateKey(AlgorithmIdentifier algorithmIdentifier,
java.security.PrivateKey... keys)
Create a composite private key which corresponds to a composite KEM algorithm in algorithmIdentifier.
|
CompositePrivateKey(ASN1ObjectIdentifier algorithm,
java.security.PrivateKey... keys) |
CompositePrivateKey(java.security.PrivateKey... keys)
Create a composite private key from an array of PrivateKeys.
|
CompositePrivateKey(PrivateKeyInfo keyInfo)
Create a composite private key from a PrivateKeyInfo.
|
| Modifier and Type | Method and Description |
|---|---|
static CompositePrivateKey.Builder |
builder(ASN1ObjectIdentifier compAlgOid) |
static CompositePrivateKey.Builder |
builder(java.lang.String algorithmName) |
boolean |
equals(java.lang.Object o) |
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 encoding of the composite private key as per Section 4.2.
|
java.lang.String |
getFormat() |
java.util.List<java.security.PrivateKey> |
getPrivateKeys()
Return a list of the component private keys making up this composite.
|
java.util.List<java.security.Provider> |
getProviders()
Return a list of the providers supporting the component private keys.
|
int |
hashCode() |
public CompositePrivateKey(java.security.PrivateKey... keys)
keys - The component private keys.public CompositePrivateKey(ASN1ObjectIdentifier algorithm, java.security.PrivateKey... keys)
public CompositePrivateKey(AlgorithmIdentifier algorithmIdentifier, java.security.PrivateKey... keys)
algorithmIdentifier - keys - public CompositePrivateKey(PrivateKeyInfo keyInfo)
keyInfo - PrivateKeyInfo object containing a composite private key.public static CompositePrivateKey.Builder builder(ASN1ObjectIdentifier compAlgOid)
public static CompositePrivateKey.Builder builder(java.lang.String algorithmName)
public java.util.List<java.security.PrivateKey> getPrivateKeys()
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 o)
equals in class java.lang.Object