List of usage examples for org.apache.shiro.authc HostAuthenticationToken HostAuthenticationToken
HostAuthenticationToken
From source file:com.tensorwrench.shiro.realm.MongoUserPasswordRealmAuthenticationTest.java
License:Apache License
@Test(expectedExceptions = { AuthenticationException.class })
public void noHostSupport() {
realm.doGetAuthenticationInfo(new HostAuthenticationToken() {
private static final long serialVersionUID = 1L;
@Override//from w w w .ja v a 2 s . c o m
public Object getPrincipal() {
return null;
}
@Override
public Object getCredentials() {
return null;
}
@Override
public String getHost() {
return null;
}
});
}