Class CompositePublicKey

java.lang.Object
org.bouncycastle.jcajce.CompositePublicKey
All Implemented Interfaces:
Serializable, Key, PublicKey

public class CompositePublicKey extends Object implements PublicKey
A composite key class.
See Also:
  • Constructor Details

    • CompositePublicKey

      public CompositePublicKey(PublicKey... keys)
      Create a composite key containing a single public key.
      Parameters:
      keys - the public keys the composite key wraps.
  • Method Details

    • getPublicKeys

      public List<PublicKey> getPublicKeys()
      Return a list of the component private keys making up this composite.
      Returns:
      an immutable list of private keys.
    • getAlgorithm

      public String getAlgorithm()
      Specified by:
      getAlgorithm in interface Key
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface Key
    • getEncoded

      public byte[] getEncoded()
      Specified by:
      getEncoded in interface Key
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object