Class CompositePrivateKey

java.lang.Object
org.bouncycastle.jcajce.CompositePrivateKey
All Implemented Interfaces:
Serializable, Key, PrivateKey, Destroyable

public class CompositePrivateKey extends Object implements PrivateKey
A composite private key class.
See Also:
  • Constructor Details

    • CompositePrivateKey

      public CompositePrivateKey(PrivateKey... keys)
      Create a composite key containing a single private key.
      Parameters:
      keys - the private keys the composite private key wraps.
  • Method Details

    • getPrivateKeys

      public List<PrivateKey> getPrivateKeys()
      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