public class RecipientInformationStore extends java.lang.Object implements org.bouncycastle.util.Iterable<RecipientInformation>
Constructor and Description |
---|
RecipientInformationStore(java.util.Collection<RecipientInformation> recipientInfos) |
RecipientInformationStore(RecipientInformation recipientInformation)
Create a store containing a single RecipientInformation object.
|
Modifier and Type | Method and Description |
---|---|
RecipientInformation |
get(RecipientId selector)
Return the first RecipientInformation object that matches the
passed in selector.
|
java.util.Collection<RecipientInformation> |
getRecipients()
Return all recipients in the collection
|
java.util.Collection<RecipientInformation> |
getRecipients(RecipientId selector)
Return possible empty collection with recipients matching the passed in RecipientId
|
java.util.Iterator<RecipientInformation> |
iterator()
Support method for Iterable where available.
|
int |
size()
Return the number of recipients in the collection.
|
public RecipientInformationStore(RecipientInformation recipientInformation)
recipientInformation
- the signer information to contain.public RecipientInformationStore(java.util.Collection<RecipientInformation> recipientInfos)
public RecipientInformation get(RecipientId selector)
selector
- to identify a recipientpublic int size()
public java.util.Collection<RecipientInformation> getRecipients()
public java.util.Collection<RecipientInformation> getRecipients(RecipientId selector)
selector
- a recipient id to select against.public java.util.Iterator<RecipientInformation> iterator()
iterator
in interface java.lang.Iterable<RecipientInformation>