Class GroovyPasswordEncoder

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.security.crypto.password.PasswordEncoder

    public class GroovyPasswordEncoder
    extends org.springframework.security.crypto.password.AbstractPasswordEncoder
    implements org.springframework.beans.factory.DisposableBean
    Since:
    5.2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      GroovyPasswordEncoder​(org.springframework.core.io.Resource groovyScript, org.springframework.context.ApplicationContext applicationContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      protected byte[] encode​(java.lang.CharSequence rawPassword, byte[] salt)  
      boolean matches​(java.lang.CharSequence rawPassword, java.lang.String encodedPassword)  
      • Methods inherited from class org.springframework.security.crypto.password.AbstractPasswordEncoder

        encode, encodeAndConcatenate, matches
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.security.crypto.password.PasswordEncoder

        upgradeEncoding
    • Constructor Detail

      • GroovyPasswordEncoder

        public GroovyPasswordEncoder​(org.springframework.core.io.Resource groovyScript,
                                     org.springframework.context.ApplicationContext applicationContext)
    • Method Detail

      • encode

        protected byte[] encode​(java.lang.CharSequence rawPassword,
                                byte[] salt)
        Specified by:
        encode in class org.springframework.security.crypto.password.AbstractPasswordEncoder
      • matches

        public boolean matches​(java.lang.CharSequence rawPassword,
                               java.lang.String encodedPassword)
        Specified by:
        matches in interface org.springframework.security.crypto.password.PasswordEncoder
        Overrides:
        matches in class org.springframework.security.crypto.password.AbstractPasswordEncoder
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean