org.bouncycastle.cms

Class RecipientInformationStore

public class RecipientInformationStore extends Object

Constructor Summary
RecipientInformationStore(Collection recipientInfos)
Method Summary
RecipientInformationget(RecipientId selector)
Return the first RecipientInformation object that matches the passed in selector.
CollectiongetRecipients()
Return all recipients in the collection
CollectiongetRecipients(RecipientId selector)
Return possible empty collection with recipients matching the passed in RecipientId
intsize()
Return the number of recipients in the collection.

Constructor Detail

RecipientInformationStore

public RecipientInformationStore(Collection recipientInfos)

Method Detail

get

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.

getRecipients

public Collection getRecipients()
Return all recipients in the collection

Returns: a collection of recipients.

getRecipients

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.

size

public int size()
Return the number of recipients in the collection.

Returns: number of recipients identified.