Class CSRFRuntime
java.lang.Object
com.emc.documentum.rest.context.jc.SecurityRuntimeBase
com.emc.documentum.rest.context.jc.CSRFRuntime
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@Configuration
@PropertySource("classpath:rest-api-runtime.properties")
public class CSRFRuntime
extends com.emc.documentum.rest.context.jc.SecurityRuntimeBase
implements org.springframework.beans.factory.InitializingBean
Default security runtime properties values.
Properties set in 'rest-api-runtime.properties' will override the default. Please refer to 'rest-api-runtime.properties.template'
for the detail explanation of runtime properties.
-
Field Summary
Modifier and TypeFieldDescriptionProperty value for 'rest.security.csrf.enabled'.Property value for 'rest.security.csrf.header_name'.Property value for 'rest.security.csrf.http_methods'.Property value for 'rest.security.csrf.generation.method'.static final String
Method to generate CSRF token from client side.static final String
Method to generate CSRF token from server side.Property value for 'rest.security.csrf.parameter_name'.Property value for 'rest.security.csrf.token.length'. -
Constructor Summary
-
Method Summary
Methods inherited from class com.emc.documentum.rest.context.jc.SecurityRuntimeBase
propertyPlaceholderConfigurer
-
Field Details
-
METHOD_SERVER
Method to generate CSRF token from server side.- See Also:
-
METHOD_CLIENT
Method to generate CSRF token from client side.- See Also:
-
supportedMethods
-
enabled
Property value for 'rest.security.csrf.enabled'. Defaults to true. -
method
Property value for 'rest.security.csrf.generation.method'. Defaults to 'server'. -
httpMethods
Property value for 'rest.security.csrf.http_methods'. Defaults to 'DELETE,POST,PUT'. -
headerName
Property value for 'rest.security.csrf.header_name'. Defaults to "DOCUMENTUM-CSRF-TOKEN". -
parameterName
Property value for 'rest.security.csrf.parameter_name'. Defaults to 'csrf-token'. -
tokenLength
Property value for 'rest.security.csrf.token.length'. Defaults to 256.
-
-
Constructor Details
-
CSRFRuntime
public CSRFRuntime()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
isCSRFProtectionEnabled
-
isClientSideGenerate
public boolean isClientSideGenerate() -
isServerSideGenerate
public boolean isServerSideGenerate() -
supportMethod
-