public class ExplicitX509CertificateTrustEngine extends Object implements TrustedCredentialTrustEngine<X509Credential>
Constructor and Description |
---|
ExplicitX509CertificateTrustEngine(CredentialResolver resolver)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkParams(X509Credential 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(X509Credential untrustedCredential,
CriteriaSet trustBasisCriteria)
Validates the token against trusted information obtained in an
implementation-specific manner.
|
public ExplicitX509CertificateTrustEngine(CredentialResolver resolver)
resolver
- credential resolver which is used to resolve trusted credentialspublic CredentialResolver getCredentialResolver()
getCredentialResolver
in interface TrustedCredentialTrustEngine<X509Credential>
public boolean validate(X509Credential untrustedCredential, CriteriaSet trustBasisCriteria) throws SecurityException
validate
in interface TrustEngine<X509Credential>
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(X509Credential untrustedCredential, CriteriaSet trustBasisCriteria) throws SecurityException
untrustedCredential
- the signature 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.