Class S256PkceGenerator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CODE_CHALLENGE_METHOD_S256  
      static java.lang.Integer ORDER  
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Pkce generate()  
      java.lang.String getName()  
      int getOrder()  
      static java.lang.String hash​(java.lang.String value)  
      boolean supportsAny​(java.util.List<java.lang.String> codeChallengeMethods)  
      • Methods inherited from class java.lang.Object

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

      • ORDER

        public static final java.lang.Integer ORDER
      • CODE_CHALLENGE_METHOD_S256

        public static final java.lang.String CODE_CHALLENGE_METHOD_S256
        See Also:
        Constant Field Values
    • Constructor Detail

      • S256PkceGenerator

        public S256PkceGenerator​(CodeVerifierGenerator codeVerifierGenerator)
        Parameters:
        codeVerifierGenerator - Code Verifier generator
    • Method Detail

      • getName

        @NonNull
        public java.lang.String getName()
        Specified by:
        getName in interface io.micronaut.core.naming.Named
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface io.micronaut.core.order.Ordered
      • supportsAny

        public boolean supportsAny​(@NonNull
                                   java.util.List<java.lang.String> codeChallengeMethods)
        Specified by:
        supportsAny in interface PkceGenerator
        Parameters:
        codeChallengeMethods - Code Challenge methods
        Returns:
        Whether the PKCE Generator supports any of the supplied code challenge methods.
      • hash

        @NonNull
        public static java.lang.String hash​(@NonNull
                                            java.lang.String value)
        Parameters:
        value - Value to be hashed
        Returns:
        a hash build with algorithm SHA-256