Class SecurityConfig
- java.lang.Object
-
- org.glassfish.embeddable.web.config.SecurityConfig
-
public class SecurityConfig extends Object
Class through which the security related parameters for a context may be configured.- Author:
- Rajiv Mordani
-
-
Constructor Summary
Constructors Constructor Description SecurityConfig()
Create an instance of SecurityConfig
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoginConfig
getLoginConfig()
Gets the login config for the contextSet<SecurityConstraint>
getSecurityConstraints()
Gets the security constraints for the contextvoid
setLoginConfig(LoginConfig lc)
Configures the login related configuration for the contextvoid
setSecurityConstraints(Set<SecurityConstraint> securityConstraints)
Set the security constraints for a context.String
toString()
Returns a formatted string of the state.
-
-
-
Method Detail
-
setSecurityConstraints
public void setSecurityConstraints(Set<SecurityConstraint> securityConstraints)
Set the security constraints for a context.- Parameters:
securityConstraints
- a set of constraints for the context on which this security configuration applies.- See Also:
SecurityConstraint
-
setLoginConfig
public void setLoginConfig(LoginConfig lc)
Configures the login related configuration for the context- Parameters:
lc
- the login config for the context- See Also:
LoginConfig
-
getSecurityConstraints
public Set<SecurityConstraint> getSecurityConstraints()
Gets the security constraints for the context- Returns:
- the security constraints for the context
- See Also:
SecurityConstraint
-
getLoginConfig
public LoginConfig getLoginConfig()
Gets the login config for the context- Returns:
- the login configuration for the context
- See Also:
LoginConfig
-
-