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 signature algorithm in algorithmIdentifier.
|
CompositePrivateKey(ASN1ObjectIdentifier algorithm,
java.security.PrivateKey... keys) |
CompositePrivateKey(java.security.PrivateKey... keys)
Create a composite private key from an array of PublicKeys.
|
CompositePrivateKey(PrivateKeyInfo keyInfo)
Create a composite private key from a PrivateKeyInfo.
|
| Modifier and Type | Method and Description |
|---|---|
static CompositePrivateKey.Builder |
builder(ASN1ObjectIdentifier compAlgOid) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
AlgorithmIdentifier |
getAlgorithmIdentifier() |
byte[] |
getEncoded()
Returns the encoding of the composite private key.
|
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 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