Class KEKRecipientId

java.lang.Object
org.bouncycastle.cms.RecipientId
org.bouncycastle.cms.KEKRecipientId
All Implemented Interfaces:
Cloneable, Selector

public class KEKRecipientId extends RecipientId
  • Constructor Details

    • KEKRecipientId

      public KEKRecipientId(byte[] keyIdentifier)
      Construct a recipient ID with the key identifier of a KEK recipient.
      Parameters:
      keyIdentifier - a subjectKeyId
  • Method Details

    • hashCode

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

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

      public byte[] getKeyIdentifier()
    • clone

      public Object clone()
      Specified by:
      clone in interface Selector
      Specified by:
      clone in class RecipientId
    • match

      public boolean match(Object obj)
      Description copied from interface: Selector
      Match the passed in object, returning true if it would be selected by this selector, false otherwise.
      Parameters:
      obj - the object to be matched.
      Returns:
      true if the object is a match for this selector, false otherwise.