public class NullCrsfTokenService extends AbstractContexed implements CrsfTokenService
CrsfTokenService that disables the check.conn| Constructor and Description |
|---|
NullCrsfTokenService(AppContext conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
AppContext is being closed. |
<K,T,P extends TransitionFactory<K,T>> |
getCrsfToken(P provider,
T target)
Get a crsf token for the operation.
|
java.lang.Class<? super CrsfTokenService> |
getType()
Returns the type of service the class should be registered under.
|
getContext, getLogger, resetLoggerpublic NullCrsfTokenService(AppContext conn)
conn - public java.lang.Class<? super CrsfTokenService> getType()
AppContextServicegetType in interface AppContextService<CrsfTokenService>public void cleanup()
AppContextCleanupAppContext is being closed.
Only use this for cleanup that can't be handled by
normal garbage collection or for state which is never returned by reference.cleanup in interface AppContextCleanuppublic <K,T,P extends TransitionFactory<K,T>> java.lang.String getCrsfToken(P provider, T target)
CrsfTokenServicegetCrsfToken in interface CrsfTokenService