Class RecipientInformationStore

java.lang.Object
org.bouncycastle.cms.RecipientInformationStore
All Implemented Interfaces:
Iterable<RecipientInformation>, org.bouncycastle.util.Iterable<RecipientInformation>

public class RecipientInformationStore extends Object implements org.bouncycastle.util.Iterable<RecipientInformation>
  • Constructor Details Link icon

    • RecipientInformationStore Link icon

      public RecipientInformationStore(RecipientInformation recipientInformation)
      Create a store containing a single RecipientInformation object.
      Parameters:
      recipientInformation - the signer information to contain.
    • RecipientInformationStore Link icon

      public RecipientInformationStore(Collection<RecipientInformation> recipientInfos)
  • Method Details Link icon

    • get Link icon

      public RecipientInformation get(RecipientId selector)
      Return the first RecipientInformation object that matches the passed in selector. Null if there are no matches.
      Parameters:
      selector - to identify a recipient
      Returns:
      a single RecipientInformation object. Null if none matches.
    • size Link icon

      public int size()
      Return the number of recipients in the collection.
      Returns:
      number of recipients identified.
    • getRecipients Link icon

      public Collection<RecipientInformation> getRecipients()
      Return all recipients in the collection
      Returns:
      a collection of recipients.
    • getRecipients Link icon

      public Collection<RecipientInformation> getRecipients(RecipientId selector)
      Return possible empty collection with recipients matching the passed in RecipientId
      Parameters:
      selector - a recipient id to select against.
      Returns:
      a collection of RecipientInformation objects.
    • iterator Link icon

      public Iterator<RecipientInformation> iterator()
      Support method for Iterable where available.
      Specified by:
      iterator in interface Iterable<RecipientInformation>
      Specified by:
      iterator in interface org.bouncycastle.util.Iterable<RecipientInformation>