Class WalletAuthenticationJwtImpl
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
es.kukenan.smartfi.common.service.jwt.WalletAuthenticationJwtImpl
- All Implemented Interfaces:
WalletAuthentication,Serializable,Principal,org.springframework.security.core.Authentication,org.springframework.security.core.CredentialsContainer
public class WalletAuthenticationJwtImpl
extends org.springframework.security.authentication.AbstractAuthenticationToken
implements WalletAuthentication
Jwt based
WalletAuthentication implementation.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JwtBearerTokenJwtBearerTokento wrap.private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe access role of the user.The identifier of the entity bank.The identifier of the company on DB.The identifier of the customer.getJwt()Retrieve the wrapped JwtBearerToken.The security level of the user.The username of the user.Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.security.core.Authentication
getAuthorities, getDetails, isAuthenticated, setAuthenticated
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
jwt
JwtBearerTokento wrap.
-
-
Constructor Details
-
WalletAuthenticationJwtImpl
Constructor.- Parameters:
jwt-JwtBearerTokento wrap.
-
-
Method Details
-
getUsername
Description copied from interface:WalletAuthenticationThe username of the user.- Specified by:
getUsernamein interfaceWalletAuthentication- Returns:
- The username of the user.
-
getSecurityLevel
Description copied from interface:WalletAuthenticationThe security level of the user. Could be: 0 anonymous 1 user_pwd 2 SCA.- Specified by:
getSecurityLevelin interfaceWalletAuthentication- Returns:
- The security level of the user. Could be: 0 anonymous 1 user_pwd 2 SCA.
-
getAccessRole
Description copied from interface:WalletAuthenticationThe access role of the user. Could be: private_user public_user manager_user.- Specified by:
getAccessRolein interfaceWalletAuthentication- Returns:
- The access role of the user. Could be: private_user public_user manager_user.
-
getCompanyId
Description copied from interface:WalletAuthenticationThe identifier of the entity bank. Could be: BC BF.- Specified by:
getCompanyIdin interfaceWalletAuthentication- Returns:
- The identifier of the entity bank. Could be: BC BF.
-
getCustomerId
Description copied from interface:WalletAuthenticationThe identifier of the customer.- Specified by:
getCustomerIdin interfaceWalletAuthentication- Returns:
- The identifier of the customer.
-
getCompanyIdentifier
Description copied from interface:WalletAuthenticationThe identifier of the company on DB.- Specified by:
getCompanyIdentifierin interfaceWalletAuthentication- Returns:
- The identifier of the entity.
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication
-
getJwt
Retrieve the wrapped JwtBearerToken.- Returns:
- the wrapped JwtBearerToken.
-