Package io.anyline.nfc.bouncycastle.cms
Class SignerInformationStore
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.util.Iterable
,java.lang.Iterable
public class SignerInformationStore implements Iterable<T>
-
-
Constructor Summary
Constructors Constructor Description SignerInformationStore(SignerInformation signerInfo)
Create a store containing a single SignerInformation object. SignerInformationStore(Collection<SignerInformation> signerInfos)
Create a store containing a collection of SignerInformation objects.
-
Method Summary
Modifier and Type Method Description SignerInformation
get(SignerId selector)
Return the first SignerInformation object that matches the passed in selector. int
size()
Return the number of signers in the collection. Collection<SignerInformation>
getSigners()
Return all signers in the collection Collection<SignerInformation>
getSigners(SignerId selector)
Return possible empty collection with signers matching the passed in SignerId Iterator<SignerInformation>
iterator()
Support method for Iterable where available. -
-
Constructor Detail
-
SignerInformationStore
SignerInformationStore(SignerInformation signerInfo)
Create a store containing a single SignerInformation object.- Parameters:
signerInfo
- the signer information to contain.
-
SignerInformationStore
SignerInformationStore(Collection<SignerInformation> signerInfos)
Create a store containing a collection of SignerInformation objects.- Parameters:
signerInfos
- a collection signer information objects to contain.
-
-
Method Detail
-
get
SignerInformation get(SignerId selector)
Return the first SignerInformation object that matches the passed in selector. Null if there are no matches.
- Parameters:
selector
- to identify a signer- Returns:
a single SignerInformation object. Null if none matches.
-
size
int size()
Return the number of signers in the collection.
- Returns:
number of signers identified.
-
getSigners
Collection<SignerInformation> getSigners()
Return all signers in the collection
- Returns:
a collection of signers.
-
getSigners
Collection<SignerInformation> getSigners(SignerId selector)
Return possible empty collection with signers matching the passed in SignerId
- Parameters:
selector
- a signer id to select against.- Returns:
a collection of SignerInformation objects.
-
iterator
Iterator<SignerInformation> iterator()
Support method for Iterable where available.
-
-
-
-