public class ExplicitKeyTrustEngine extends Object implements TrustedCredentialTrustEngine<Credential>
Constructor and Description |
---|
ExplicitKeyTrustEngine(CredentialResolver resolver)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkParams(Credential untrustedCredential,
CriteriaSet trustBasisCriteria)
Check the parameters for required values.
|
CredentialResolver |
getCredentialResolver()
Gets the credential resolver used to recover trusted credentials that
may be used to validate tokens.
|
boolean |
validate(Credential untrustedCredential,
CriteriaSet trustBasisCriteria)
Validates the token against trusted information obtained in an
implementation-specific manner.
|
public ExplicitKeyTrustEngine(CredentialResolver resolver)
resolver
- credential resolver which is used to resolve trusted credentialspublic CredentialResolver getCredentialResolver()
getCredentialResolver
in interface TrustedCredentialTrustEngine<Credential>
public boolean validate(Credential untrustedCredential, CriteriaSet trustBasisCriteria) throws SecurityException
validate
in interface TrustEngine<Credential>
untrustedCredential
- security token to validatetrustBasisCriteria
- criteria used to describe and/or resolve the information
which serves as the basis for trust evaluationSecurityException
- thrown if there is a problem validating the security tokenprotected void checkParams(Credential untrustedCredential, CriteriaSet trustBasisCriteria) throws SecurityException
untrustedCredential
- the credential to be evaluatedtrustBasisCriteria
- the set of trusted credential criteriaSecurityException
- thrown if required values are absent or otherwise invalidCopyright © 2018 JBoss by Red Hat. All rights reserved.