Example usage for org.apache.shiro.authc HostAuthenticationToken HostAuthenticationToken

List of usage examples for org.apache.shiro.authc HostAuthenticationToken HostAuthenticationToken

Introduction

In this page you can find the example usage for org.apache.shiro.authc HostAuthenticationToken HostAuthenticationToken.

Prototype

HostAuthenticationToken

Source Link

Usage

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;
        }
    });
}