org.apache.struts2.interceptor.csp

## Class StrutsCspNonceReader

- java.lang.Object
- - org.apache.struts2.interceptor.csp.StrutsCspNonceReader

- All Implemented Interfaces:
    CspNonceReader

      public class StrutsCspNonceReader
      extends Object
      implements CspNonceReader

  Reads nonce value from session or request attribute.
  Since:
    6.8.0

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.apache.struts2.interceptor.csp.CspNonceReader

      `CspNonceReader.NonceValue`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StrutsCspNonceReader(String source)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CspNonceReader.NonceValue` | `readNonceValue(ValueStack stack)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StrutsCspNonceReader

          public StrutsCspNonceReader(String source)

  - ### Method Detail

    - #### readNonceValue

          public CspNonceReader.NonceValue readNonceValue(ValueStack stack)

      Specified by:
        `readNonceValue` in interface `CspNonceReader`

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.