org.apache.struts2.interceptor.csp

## Class CspNonceReader.NonceValue

- java.lang.Object
- - org.apache.struts2.interceptor.csp.CspNonceReader.NonceValue

- Enclosing interface:
    CspNonceReader

      public static class CspNonceReader.NonceValue
      extends Object

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getNonceValue()`
    `CspNonceSource` | `getSource()`
    `boolean` | `isNonceValueSet()`
    `static CspNonceReader.NonceValue` | `ofNullRequest()`
    `static CspNonceReader.NonceValue` | `ofNullSession()`
    `static CspNonceReader.NonceValue` | `ofRequest(String nonceValue)`
    `static CspNonceReader.NonceValue` | `ofSession(String nonceValue)`
    `String` | `toString()`

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

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

- - ### Method Detail

    - #### ofSession

          public static CspNonceReader.NonceValue ofSession(String nonceValue)

    - #### ofRequest

          public static CspNonceReader.NonceValue ofRequest(String nonceValue)

    - #### ofNullSession

          public static CspNonceReader.NonceValue ofNullSession()

    - #### ofNullRequest

          public static CspNonceReader.NonceValue ofNullRequest()

    - #### isNonceValueSet

          public boolean isNonceValueSet()

    - #### getNonceValue

          public String getNonceValue()

    - #### getSource

          public CspNonceSource getSource()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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