public class AuthServiceImpl<R> extends Object implements AuthService<R>
| Constructor and Description |
|---|
AuthServiceImpl(RolesProvider provider,
RolesEncoder<R> encoder) |
| Modifier and Type | Method and Description |
|---|---|
AuthContext<R> |
auth(User<R> user) |
List<Role> |
decode(R roles)
Returns the list of
Roles from the encoded representation |
R |
encode(String... roleNames)
Returns the encoded representation of a set of
Roles. |
void |
refresh() |
void |
start() |
public AuthServiceImpl(RolesProvider provider, RolesEncoder<R> encoder)
public void start()
start in interface AuthService<R>public void refresh()
refresh in interface AuthService<R>public R encode(String... roleNames)
AuthServiceRoles.encode in interface AuthService<R>public List<Role> decode(R roles)
AuthDecoderRoles from the encoded representationdecode in interface AuthDecoder<R>public AuthContext<R> auth(User<R> user)
auth in interface AuthService<R>Copyright © 2018. All rights reserved.