Class AuthenticatorMockImpl
java.lang.Object
org.summerboot.jexpress.security.auth.BootAuthenticator<Long>
org.summerboot.jexpress.security.auth.AuthenticatorMockImpl
- All Implemented Interfaces:
Authenticator
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
Fields inherited from class org.summerboot.jexpress.security.auth.BootAuthenticator
authCfg, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Callerauthenticate(String uid, String password, Long metaData, AuthenticatorListener listener, ServiceContext context) protected IntegerbooleanpreAccessCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) do any validation checks before processingMethods inherited from class org.summerboot.jexpress.security.auth.BootAuthenticator
fromJwt, getBearerToken, login, logout, logout, setListener, toJwt, verifyBearerToken, verifyToken
-
Constructor Details
-
AuthenticatorMockImpl
public AuthenticatorMockImpl()
-
-
Method Details
-
authenticate
protected Caller authenticate(String uid, String password, Long metaData, AuthenticatorListener listener, ServiceContext context) throws NamingException - Specified by:
authenticatein classBootAuthenticator<Long>- Returns:
- Throws:
NamingException
-
preAccessCheck
public boolean preAccessCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) throws Exception Description copied from interface:Authenticatordo any validation checks before processing- Returns:
- true if good to process request, otherwise false
- Throws:
Exception
-
overrideVerifyTokenErrorCode
- Overrides:
overrideVerifyTokenErrorCodein classBootAuthenticator<Long>
-