org.apache.camel.component.netty.http
Class NettyHttpSecurityConfiguration

java.lang.Object
  extended by org.apache.camel.component.netty.http.NettyHttpSecurityConfiguration

public class NettyHttpSecurityConfiguration
extends Object

Security configuration for the NettyHttpConsumer.


Constructor Summary
NettyHttpSecurityConfiguration()
           
 
Method Summary
 String getConstraint()
           
 org.apache.camel.LoggingLevel getLoginDeniedLoggingLevel()
           
 String getRealm()
           
 String getRoleClassName()
           
 SecurityAuthenticator getSecurityAuthenticator()
           
 SecurityConstraint getSecurityConstraint()
           
 boolean isAuthenticate()
           
 void setAuthenticate(boolean authenticate)
          Whether to enable authentication

This is by default enabled.

 void setConstraint(String constraint)
          The supported restricted.
 void setLoginDeniedLoggingLevel(org.apache.camel.LoggingLevel loginDeniedLoggingLevel)
          Sets a logging level to use for logging denied login attempts (incl stacktraces)

This level is by default DEBUG.

 void setRealm(String realm)
          Sets the name of the realm to use.
 void setRoleClassName(String roleClassName)
           
 void setSecurityAuthenticator(SecurityAuthenticator securityAuthenticator)
          Sets the SecurityAuthenticator to use for authenticating the HttpPrincipal.
 void setSecurityConstraint(SecurityConstraint securityConstraint)
          Sets a SecurityConstraint to use for checking if a web resource is restricted or not

By default this is null, which means all resources is restricted.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NettyHttpSecurityConfiguration

public NettyHttpSecurityConfiguration()
Method Detail

isAuthenticate

public boolean isAuthenticate()

setAuthenticate

public void setAuthenticate(boolean authenticate)
Whether to enable authentication

This is by default enabled.


getConstraint

public String getConstraint()

setConstraint

public void setConstraint(String constraint)
The supported restricted.

Currently only Basic is supported.


getRealm

public String getRealm()

setRealm

public void setRealm(String realm)
Sets the name of the realm to use.


getSecurityConstraint

public SecurityConstraint getSecurityConstraint()

setSecurityConstraint

public void setSecurityConstraint(SecurityConstraint securityConstraint)
Sets a SecurityConstraint to use for checking if a web resource is restricted or not

By default this is null, which means all resources is restricted.


getSecurityAuthenticator

public SecurityAuthenticator getSecurityAuthenticator()

setSecurityAuthenticator

public void setSecurityAuthenticator(SecurityAuthenticator securityAuthenticator)
Sets the SecurityAuthenticator to use for authenticating the HttpPrincipal.


getLoginDeniedLoggingLevel

public org.apache.camel.LoggingLevel getLoginDeniedLoggingLevel()

setLoginDeniedLoggingLevel

public void setLoginDeniedLoggingLevel(org.apache.camel.LoggingLevel loginDeniedLoggingLevel)
Sets a logging level to use for logging denied login attempts (incl stacktraces)

This level is by default DEBUG.


getRoleClassName

public String getRoleClassName()

setRoleClassName

public void setRoleClassName(String roleClassName)


Apache Camel