public class SignerInformationStore extends java.lang.Object implements org.bouncycastle.util.Iterable<SignerInformation>
Constructor and Description |
---|
SignerInformationStore(java.util.Collection<SignerInformation> signerInfos)
Create a store containing a collection of SignerInformation objects.
|
SignerInformationStore(SignerInformation signerInfo)
Create a store containing a single SignerInformation object.
|
Modifier and Type | Method and Description |
---|---|
SignerInformation |
get(SignerId selector)
Return the first SignerInformation object that matches the
passed in selector.
|
java.util.Collection<SignerInformation> |
getSigners()
Return all signers in the collection
|
java.util.Collection<SignerInformation> |
getSigners(SignerId selector)
Return possible empty collection with signers matching the passed in SignerId
|
java.util.Iterator<SignerInformation> |
iterator()
Support method for Iterable where available.
|
int |
size()
Return the number of signers in the collection.
|
public SignerInformationStore(SignerInformation signerInfo)
signerInfo
- the signer information to contain.public SignerInformationStore(java.util.Collection<SignerInformation> signerInfos)
signerInfos
- a collection signer information objects to contain.public SignerInformation get(SignerId selector)
selector
- to identify a signerpublic int size()
public java.util.Collection<SignerInformation> getSigners()
public java.util.Collection<SignerInformation> getSigners(SignerId selector)
selector
- a signer id to select against.public java.util.Iterator<SignerInformation> iterator()
iterator
in interface java.lang.Iterable<SignerInformation>