Package com.jalios.jcms.member
Class MemberSecurityEnforcer
- java.lang.Object
-
- com.jalios.jcms.member.MemberSecurityEnforcer
-
public class MemberSecurityEnforcer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MemberSecurityEnforcer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static void
initAfterStartup()
Initialize on startupstatic java.lang.String
newRandomExternalPassword()
Retrieve a random password value suitable for external account for which sign in with local password must not be authorized.
-
-
-
Method Detail
-
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
public static java.lang.String 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:
Member.EXTERNAL_PASSWORD
-
-