|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.security.credential.AbstractCredentialResolver org.opensaml.xml.security.credential.StaticCredentialResolver
public class StaticCredentialResolver
Simple implementation of CredentialResolver
which just stores and returns a static set of credentials.
Note: no filtering or other evaluation of the credentials is performed. Any Criteria
specified are ignored. For a similar Collection-based CredentialResolver implementation which does support
evaluation and filtering based on supplied evaluable criteria, see CollectionCredentialResolver
.
Constructor Summary | |
---|---|
StaticCredentialResolver(Credential credential)
Constructor. |
|
StaticCredentialResolver(List<Credential> credentials)
Constructor. |
Method Summary | |
---|---|
Iterable<Credential> |
resolve(CriteriaSet criteria)
Process the specified criteria and return the resulting instances the the product type which satisfy the criteria. |
Methods inherited from class org.opensaml.xml.security.credential.AbstractCredentialResolver |
---|
resolveSingle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticCredentialResolver(List<Credential> credentials)
credentials
- collection of credentials to be held by this resolverpublic StaticCredentialResolver(Credential credential)
credential
- a single credential to be held by this resolverMethod Detail |
---|
public Iterable<Credential> resolve(CriteriaSet criteria) throws SecurityException
resolve
in interface Resolver<Credential,CriteriaSet>
resolve
in class AbstractCredentialResolver
criteria
- the criteria to evaluate or process
SecurityException
- thrown if there is an error processing the specified criteria
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |