Class MemberSecurityEnforcer


  • public class MemberSecurityEnforcer
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canGenerateExternalPassword()
      Check if Member.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 startup
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MemberSecurityEnforcer

        public MemberSecurityEnforcer()
    • Method Detail

      • initAfterStartup

        public static void initAfterStartup()
        Initialize on startup
      • canGenerateExternalPassword

        public static boolean canGenerateExternalPassword()
        Check if Member.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