public class

RecipientInformationStore

extends Object
java.lang.Object
   ↳ org.bouncycastle.cms.RecipientInformationStore

Summary

Public Constructors
RecipientInformationStore(Collection recipientInfos)
Public Methods
RecipientInformation get(RecipientId selector)
Return the first RecipientInformation object that matches the passed in selector.
Collection getRecipients(RecipientId selector)
Return possible empty collection with recipients matching the passed in RecipientId
Collection getRecipients()
Return all recipients in the collection
int size()
Return the number of recipients in the collection.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RecipientInformationStore (Collection recipientInfos)

Public Methods

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.

public Collection 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.

public Collection getRecipients ()

Return all recipients in the collection

Returns
  • a collection of recipients.

public int size ()

Return the number of recipients in the collection.

Returns
  • number of recipients identified.