Package org.opensaml.security.testing
Class MockTrustEngine<TokenType>
java.lang.Object
org.opensaml.security.testing.MockTrustEngine<TokenType>
- Type Parameters:
TokenType- token type for trust engine
- All Implemented Interfaces:
TrustEngine<TokenType>
Mock trust engine.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate(TokenType token, CriteriaSet trustBasisCriteria) Validates the token against trusted information obtained in an implementation-specific manner.
-
Field Details
-
trusted
private boolean trustedTrusted flag. -
throwable
Exception to raise.
-
-
Constructor Details
-
MockTrustEngine
public MockTrustEngine(boolean flag) Constructor.- Parameters:
flag- flag controlling whether the trust engine mock should accept the input or not.
-
MockTrustEngine
Constructor.- Parameters:
t- exception to raise from mock.
-
-
Method Details