use of org.apereo.cas.support.spnego.MockUnsuccessfulJcifsAuthentication in project cas by apereo.
the class JcifsSpnegoAuthenticationHandlerTests method verifyUnsuccessfulAuthenticationWithExceptionOnProcess.
@Test
public void verifyUnsuccessfulAuthenticationWithExceptionOnProcess() throws Exception {
val credentials = new SpnegoCredential(new byte[] { 0, 1, 2 });
val authenticationHandler = new JcifsSpnegoAuthenticationHandler(StringUtils.EMPTY, null, null, CollectionUtils.wrapList(new MockUnsuccessfulJcifsAuthentication(true)), true, true, null);
authenticate(credentials, authenticationHandler);
}
use of org.apereo.cas.support.spnego.MockUnsuccessfulJcifsAuthentication in project cas by apereo.
the class JcifsSpnegoAuthenticationHandlerTests method verifyUnsuccessfulAuthentication.
@Test
public void verifyUnsuccessfulAuthentication() throws Exception {
val credentials = new SpnegoCredential(new byte[] { 0, 1, 2 });
val authenticationHandler = new JcifsSpnegoAuthenticationHandler(StringUtils.EMPTY, null, null, CollectionUtils.wrapList(new MockUnsuccessfulJcifsAuthentication(false)), true, true, null);
authenticate(credentials, authenticationHandler);
}
Aggregations