| Modifier and Type | Field and Description |
|---|---|
| private final ASN1ObjectIdentifier | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | CompositePublicKey(PublicKey...
The component public keys. keys)Create a composite public key from an array of PublicKeys. |
| public | CompositePublicKey(ASN1ObjectIdentifier algorithmIdentifier, PublicKey... keys)
Create a composite public key which corresponds to a composite signature algorithm in algorithmIdentifier. |
| public | CompositePublicKey(SubjectPublicKeyInfo
SubjectPublicKeyInfo object containing a composite public key. keyInfo)Create a composite public key from a SubjectPublicKeyInfo. |
| 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 composite public key encoded as a SubjectPublicKeyInfo. |
| public String | getFormat()
Implements java. Returns the name of the primary encoding format of this key,
or |
| public List | Returns: an immutable list of public keys.Return a list of the component public keys making up this composite. |
| public int |
| algorithmIdentifier | back to summary |
|---|---|
| private final ASN1ObjectIdentifier algorithmIdentifier | |
| keys | back to summary |
|---|---|
| private final List<PublicKey> keys | |
| CompositePublicKey | back to summary |
|---|---|
| public CompositePublicKey(PublicKey... keys) Create a composite public key from an array of PublicKeys. This constructor is currently used only for legacy composites implementation.
| |
| CompositePublicKey | back to summary |
|---|---|
| public CompositePublicKey(ASN1ObjectIdentifier algorithmIdentifier, PublicKey... keys) Create a composite public key which corresponds to a composite signature algorithm in algorithmIdentifier. The component public 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. | |
| CompositePublicKey | back to summary |
|---|---|
| public CompositePublicKey(SubjectPublicKeyInfo keyInfo) Create a composite public key from a SubjectPublicKeyInfo.
| |
| 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 composite public key encoded as a SubjectPublicKeyInfo. If the composite public key is legacy (MiscObjectIdentifiers.id_composite_key), it each component public key is wrapped in its own SubjectPublicKeyInfo. Other composite public keys are encoded according to https://www.ietf.org/archive/id/draft-ounsworth-pq-composite-sigs-13.html#name-compositesignaturepublickey where each component public key is a BIT STRING which contains the result of calling getEncoded() for each component public key.
| |
| getFormat | back to summary |
|---|---|
| public String getFormat() Implements java. Doc from java. Returns the name of the primary encoding format of this key,
or
| |
| getPublicKeys | back to summary |
|---|---|
| public List Return a list of the component public 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
| |