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, resetLogger
public NullCrsfTokenService(AppContext conn)
conn
- public java.lang.Class<? super CrsfTokenService> getType()
AppContextService
getType
in interface AppContextService<CrsfTokenService>
public void cleanup()
AppContextCleanup
AppContext
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 AppContextCleanup
public <K,T,P extends TransitionFactory<K,T>> java.lang.String getCrsfToken(P provider, T target)
CrsfTokenService
getCrsfToken
in interface CrsfTokenService