@Test public void shouldCreateAuthenticatedInstance() throws Exception { String token = JWT.create() .withIssuer("auth0") .sign(hmacAlgorithm); AuthenticationJsonWebToken auth = new AuthenticationJsonWebToken(token, verifier); assertThat(auth, is(notNullValue())); assertThat(auth.isAuthenticated(), is(true)); }
@Override public boolean isAuthenticated() { return authenticated; }
AuthenticationJsonWebToken implements Authentication, JwtAuthentication { @Override public boolean isAuthenticated() { return authenticated; } }
AuthenticationJsonWebToken implements Authentication, JwtAuthentication { @Override public boolean isAuthenticated() { return authenticated; } AuthenticationJsonWebToken(String token, JWTVerifier verifier); }
AuthenticationJsonWebToken implements Authentication, JwtAuthentication { @Override public boolean isAuthenticated() { return authenticated; } AuthenticationJsonWebToken(String token, JWTVerifier verifier); @Override String getToken(); @Override String getKeyId(); @Override Authentication verify(JWTVerifier verifier); @Override Collection<? extends GrantedAuthority> getAuthorities(); @Override Object getCredentials(); @Override Object getDetails(); @Override Object getPrincipal(); @Override boolean isAuthenticated(); @Override void setAuthenticated(boolean isAuthenticated); @Override String getName(); }
AuthenticationJsonWebToken implements Authentication, JwtAuthentication { @Override public boolean isAuthenticated() { return authenticated; } AuthenticationJsonWebToken(String token, JWTVerifier verifier); @Override String getToken(); @Override String getKeyId(); @Override Authentication verify(JWTVerifier verifier); @Override Collection<? extends GrantedAuthority> getAuthorities(); @Override Object getCredentials(); @Override Object getDetails(); @Override Object getPrincipal(); @Override boolean isAuthenticated(); @Override void setAuthenticated(boolean isAuthenticated); @Override String getName();  }