public class CompositePrivateKey
extends java.lang.Object
implements java.security.PrivateKey
Constructor and Description |
---|
CompositePrivateKey(ASN1ObjectIdentifier algorithmIdentifier,
java.security.PrivateKey... keys)
Create a composite private key which corresponds to a composite signature algorithm in algorithmIdentifier.
|
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 |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAlgorithm() |
ASN1ObjectIdentifier |
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.
|
int |
hashCode() |
public CompositePrivateKey(java.security.PrivateKey... keys)
keys
- The component private keys.public CompositePrivateKey(ASN1ObjectIdentifier algorithmIdentifier, java.security.PrivateKey... keys)
algorithmIdentifier
- keys
- public CompositePrivateKey(PrivateKeyInfo keyInfo)
keyInfo
- PrivateKeyInfo object containing a composite private key.public java.util.List<java.security.PrivateKey> getPrivateKeys()
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public ASN1ObjectIdentifier getAlgorithmIdentifier()
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object