| Modifier and Type | Field and Description |
|---|---|
| private ASN1ObjectIdentifier | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | CompositePrivateKey(PrivateKey...
The component private keys. keys)Create a composite private key from an array of PublicKeys. |
| public | CompositePrivateKey(ASN1ObjectIdentifier algorithmIdentifier, PrivateKey... keys)
Create a composite private key which corresponds to a composite signature algorithm in algorithmIdentifier. |
| public | CompositePrivateKey(PrivateKeyInfo
PrivateKeyInfo object containing a composite private key. keyInfo)Create a composite private key from a PrivateKeyInfo. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | getAlgorithm()
Implements java. Returns the standard algorithm name for this key. |
| public ASN1ObjectIdentifier | |
| public byte[] | getEncoded()
Implements java. Returns the encoding of the composite private key. |
| public String | getFormat()
Implements java. Returns the name of the primary encoding format of this key,
or |
| public List | Returns: an immutable list of private keys.Return a list of the component private keys making up this composite. |
| public int |
| algorithmIdentifier | back to summary |
|---|---|
| private ASN1ObjectIdentifier algorithmIdentifier | |
| keys | back to summary |
|---|---|
| private final List<PrivateKey> keys | |
| CompositePrivateKey | back to summary |
|---|---|
| public CompositePrivateKey(PrivateKey... keys) Create a composite private key from an array of PublicKeys. This constructor is currently used only for legacy composites implementation.
| |
| CompositePrivateKey | back to summary |
|---|---|
| public CompositePrivateKey(ASN1ObjectIdentifier algorithmIdentifier, PrivateKey... keys) Create a composite private key which corresponds to a composite signature algorithm in algorithmIdentifier. The component private keys are not checked if they satisfy the composite definition at this point, however, they will fail when they are fed into component algorithms which are defined by the algorithmIdentifier. | |
| CompositePrivateKey | back to summary |
|---|---|
| public CompositePrivateKey(PrivateKeyInfo keyInfo) Create a composite private key from a PrivateKeyInfo.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements java. Doc from java. Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key. See the key related sections (KeyFactory, KeyGenerator, KeyPairGenerator, and SecretKeyFactory) in the Java Security Standard Algorithm Names Specification for information about standard key algorithm names.
| |
| getAlgorithmIdentifier | back to summary |
|---|---|
| public ASN1ObjectIdentifier getAlgorithmIdentifier() | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() Implements java. Returns the encoding of the composite private key. It is compliant with https://www.ietf.org/archive/id/draft-ounsworth-pq-composite-sigs-13.html#name-compositesignatureprivateke as each component is encoded as a PrivateKeyInfo (older name for OneAsymmetricKey). | |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Doc from java. Returns the name of the primary encoding format of this key,
or
| |
| getPrivateKeys | back to summary |
|---|---|
| public List Return a list of the component private keys making up this composite.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |