public class RecipientInformationStore extends Object implements Iterable<RecipientInformation>
Constructor and Description |
---|
RecipientInformationStore(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.
|
Collection<RecipientInformation> |
getRecipients()
Return all recipients in the collection
|
Collection<Recipient> |
getRecipients(RecipientId selector)
Return possible empty collection with recipients matching the passed in RecipientId
|
Iterator<RecipientInformation> |
iterator()
Support method for Iterable where available.
|
int |
size()
Return the number of recipients in the collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RecipientInformationStore(RecipientInformation recipientInformation)
recipientInformation
- the signer information to contain.public RecipientInformationStore(Collection<RecipientInformation> recipientInfos)
public RecipientInformation get(RecipientId selector)
selector
- to identify a recipientpublic int size()
public Collection<RecipientInformation> getRecipients()
public Collection<Recipient> getRecipients(RecipientId selector)
selector
- a recipient id to select against.public Iterator<RecipientInformation> iterator()
iterator
in interface Iterable<RecipientInformation>
Copyright © 2020 BouncyCastle.org. All rights reserved.