Class DefaultNonceConfiguration

  • All Implemented Interfaces:
    io.micronaut.core.util.Toggleable, NonceConfiguration

    @ConfigurationProperties("micronaut.security.oauth2.openid.nonce")
    public class DefaultNonceConfiguration
    extends java.lang.Object
    implements NonceConfiguration
    Configuration properties implementation of nonce validation configuration.
    Since:
    1.2.0
    Author:
    James Kleeh
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PREFIX  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getPersistence()  
      boolean isEnabled()  
      void setEnabled​(boolean enabled)
      Sets whether a nonce parameter will be sent.
      void setPersistence​(java.lang.String persistence)
      Sets the mechanism to persist the nonce for later retrieval for validation.
      • Methods inherited from class java.lang.Object

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

      • DefaultNonceConfiguration

        public DefaultNonceConfiguration()
    • Method Detail

      • getPersistence

        public java.util.Optional<java.lang.String> getPersistence()
        Specified by:
        getPersistence in interface NonceConfiguration
        Returns:
        The nonce persistence mechanism
      • setPersistence

        public void setPersistence​(java.lang.String persistence)
        Sets the mechanism to persist the nonce for later retrieval for validation. Supported values ("session", "cookie"). Default value ("cookie").
        Parameters:
        persistence - The persistence mechanism
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface io.micronaut.core.util.Toggleable
      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets whether a nonce parameter will be sent. Default (true).
        Parameters:
        enabled - The enabled flag