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) booleancustomizedAuthorizationCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) Extra authorization checks before processingprotected IntegerMethods 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
-
customizedAuthorizationCheck
public boolean customizedAuthorizationCheck(RequestProcessor processor, io.netty.handler.codec.http.HttpHeaders httpRequestHeaders, String httpRequestPath, ServiceContext context) throws Exception Description copied from interface:AuthenticatorExtra authorization checks before processing- Returns:
- true if good to process request, otherwise false
- Throws:
Exception
-
overrideVerifyTokenErrorCode
- Overrides:
overrideVerifyTokenErrorCodein classBootAuthenticator<Long>
-