public class SignerInformationStore extends Object implements Iterable<SignerInformation>
Constructor and Description |
---|
SignerInformationStore(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.
|
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.
|
int |
size()
Return the number of signers in the collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SignerInformationStore(SignerInformation signerInfo)
signerInfo
- the signer information to contain.public SignerInformationStore(Collection<SignerInformation> signerInfos)
signerInfos
- a collection signer information objects to contain.public SignerInformation get(SignerId selector)
selector
- to identify a signerpublic int size()
public Collection<SignerInformation> getSigners()
public Collection<SignerInformation> getSigners(SignerId selector)
selector
- a signer id to select against.public Iterator<SignerInformation> iterator()
iterator
in interface Iterable<SignerInformation>
Copyright © 2018 BouncyCastle.org. All rights reserved.