Top Fields Constructors Methods
org.bouncycastle.cms

public Class RecipientInformationStore

extends Object
implements Iterable<RecipientInformation>
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Iterable, java.lang.Iterable
Imports
java.util.ArrayList, .Collection, .HashMap, .Iterator, .List, .Map, org.bouncycastle.asn1.x500.X500Name, org.bouncycastle.util.Iterable

Field Summary

Modifier and TypeField and Description
private final List<E>
private final Map<K, V>

Constructor Summary

AccessConstructor and Description
public
RecipientInformationStore(RecipientInformation
the signer information to contain.
recipientInformation
)

Create a store containing a single RecipientInformation object.

public

Method Summary

Modifier and TypeMethod and Description
public RecipientInformation

Returns:

a single RecipientInformation object. Null if none matches.
get
(RecipientId
to identify a recipient
selector
)

Return the first RecipientInformation object that matches the passed in selector.

public Collection<RecipientInformation>

Returns:

a collection of recipients.
getRecipients
()

Return all recipients in the collection

public Collection<RecipientInformation>

Returns:

a collection of RecipientInformation objects.
getRecipients
(RecipientId
a recipient id to select against.
selector
)

Return possible empty collection with recipients matching the passed in RecipientId

public Iterator<RecipientInformation>
iterator()

Implements org.bouncycastle.util.Iterable.iterator.

Support method for Iterable where available.

public int

Returns:

number of recipients identified.
size
()

Return the number of recipients in the collection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allback to summary
private final List<E> all
tableback to summary
private final Map<K, V> table

Constructor Detail

RecipientInformationStoreback to summary
public RecipientInformationStore(RecipientInformation recipientInformation)

Create a store containing a single RecipientInformation object.

Parameters
recipientInformation:RecipientInformation

the signer information to contain.

RecipientInformationStoreback to summary
public RecipientInformationStore(Collection<RecipientInformation> recipientInfos)

Method Detail

getback to summary
public RecipientInformation get(RecipientId selector)

Return the first RecipientInformation object that matches the passed in selector. Null if there are no matches.

Parameters
selector:RecipientId

to identify a recipient

Returns:RecipientInformation

a single RecipientInformation object. Null if none matches.

getRecipientsback to summary
public Collection<RecipientInformation> getRecipients()

Return all recipients in the collection

Returns:Collection<RecipientInformation>

a collection of recipients.

getRecipientsback to summary
public Collection<RecipientInformation> getRecipients(RecipientId selector)

Return possible empty collection with recipients matching the passed in RecipientId

Parameters
selector:RecipientId

a recipient id to select against.

Returns:Collection<RecipientInformation>

a collection of RecipientInformation objects.

iteratorback to summary
public Iterator<RecipientInformation> iterator()

Implements org.bouncycastle.util.Iterable.iterator.

Support method for Iterable where available.

Returns:Iterator<RecipientInformation>

Doc from org.bouncycastle.util.Iterable.iterator.

an Iterator.

sizeback to summary
public int size()

Return the number of recipients in the collection.

Returns:int

number of recipients identified.