Top Fields Constructors Methods
org.bouncycastle.cms

public Class SignerInformationStore

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
SignerInformationStore(SignerInformation
the signer information to contain.
signerInfo
)

Create a store containing a single SignerInformation object.

public
SignerInformationStore(Collection<SignerInformation>
a collection signer information objects to contain.
signerInfos
)

Create a store containing a collection of SignerInformation objects.

Method Summary

Modifier and TypeMethod and Description
public SignerInformation

Returns:

a single SignerInformation object. Null if none matches.
get
(SignerId
to identify a signer
selector
)

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

public Collection<SignerInformation>

Returns:

a collection of signers.
getSigners
()

Return all signers in the collection

public Collection<SignerInformation>

Returns:

a collection of SignerInformation objects.
getSigners
(SignerId
a signer id to select against.
selector
)

Return possible empty collection with signers matching the passed in SignerId

public Iterator<SignerInformation>
iterator()

Implements org.bouncycastle.util.Iterable.iterator.

Support method for Iterable where available.
public int

Returns:

number of signers identified.
size
()

Return the number of signers in the collection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

SignerInformationStoreback to summary
public SignerInformationStore(SignerInformation signerInfo)

Create a store containing a single SignerInformation object.

Parameters
signerInfo:SignerInformation

the signer information to contain.

SignerInformationStoreback to summary
public SignerInformationStore(Collection<SignerInformation> signerInfos)

Create a store containing a collection of SignerInformation objects.

Parameters
signerInfos:Collection<SignerInformation>

a collection signer information objects to contain.

Method Detail

getback to summary
public SignerInformation get(SignerId selector)

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

Parameters
selector:SignerId

to identify a signer

Returns:SignerInformation

a single SignerInformation object. Null if none matches.

getSignersback to summary
public Collection<SignerInformation> getSigners()

Return all signers in the collection

Returns:Collection<SignerInformation>

a collection of signers.

getSignersback to summary
public Collection<SignerInformation> getSigners(SignerId selector)

Return possible empty collection with signers matching the passed in SignerId

Parameters
selector:SignerId

a signer id to select against.

Returns:Collection<SignerInformation>

a collection of SignerInformation objects.

iteratorback to summary
public Iterator<SignerInformation> iterator()

Implements org.bouncycastle.util.Iterable.iterator.

Support method for Iterable where available.

Returns:Iterator<SignerInformation>

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

an Iterator.

sizeback to summary
public int size()

Return the number of signers in the collection.

Returns:int

number of signers identified.