Package com.jalios.jcms.member
Class MemberSecurityEnforcer
java.lang.Object
com.jalios.jcms.member.MemberSecurityEnforcer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck ifMember.setPassword(com.jalios.jcms.Member.EXTERNAL_PASSWORD)can be replaced with a random password when performing create or update operation.static voidInitialize on startupstatic StringRetrieve a random password value suitable for external account for which sign in with local password must not be authorized.
-
Constructor Details
-
MemberSecurityEnforcer
public MemberSecurityEnforcer()
-
-
Method Details
-
initAfterStartup
public static void initAfterStartup()Initialize on startup -
canGenerateExternalPassword
public static boolean canGenerateExternalPassword()Check ifMember.setPassword(com.jalios.jcms.Member.EXTERNAL_PASSWORD)can be replaced with a random password when performing create or update operation.- Returns:
- true if password can be replaced on operation, false if external password must be left intact.
-
newRandomExternalPassword
Retrieve a random password value suitable for external account for which sign in with local password must not be authorized.- Returns:
- a unique random password value, which CANNOT be used for signin (it is not a valid bcrypt hash).
- See Also:
-