org.bouncycastle.cms

Class RecipientInformationStore


public class RecipientInformationStore
extends java.lang.Object

Constructor Summary

RecipientInformationStore(Collection recipientInfos)

Method Summary

RecipientInformation
get(RecipientId selector)
Return the first RecipientInformation object that matches the passed in selector.
Collection
getRecipients()
Return all recipients in the collection
Collection
getRecipients(RecipientId selector)
Return possible empty collection with recipients matching the passed in RecipientId
int
size()
Return the number of recipients in the collection.

Constructor Details

RecipientInformationStore

public RecipientInformationStore(Collection recipientInfos)

Method Details

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.