|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
MBean Interface for the JRunSecurityManager to provide user credential authentication and Role validation
| Fields inherited from interface jrunx.kernel.Service |
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED |
| Method Summary | |
void |
addLoginModule(java.lang.String domain,
java.util.Properties loginModule)
|
java.lang.Object |
authenticateSecurityContext(java.lang.Object principalname,
java.lang.Object credential)
|
java.lang.Object |
authenticateSecurityContext(java.lang.Object principalname,
java.lang.Object credential,
java.lang.String hostName)
Authentication for trusted hosts If the hostname is part of the trusted hosts collection, no authentication is needed We create a new security context andd return the securityID |
java.lang.Object |
authenticateSecurityContext(java.security.Principal principal,
java.lang.Object credential)
Authenticate this principal/credential pair and return a SecurityContextId |
boolean |
checkSharedPrincipals(java.util.Collection permissions,
SimplePrincipal thisPrincipal)
|
void |
closeSecurityContext(java.lang.Object securityContextId)
|
java.lang.String |
getAuthConfig()
|
boolean |
getCheckForSharedPrincipals()
|
JRunSecurityManager |
getJRunSecurityManager()
|
java.util.ArrayList |
getLoginModules(java.lang.String domain)
|
java.lang.String |
getRoleMappingDomain()
|
SimplePrincipal |
getRunAsIdentityPrincipal(SimplePrincipal thisRole)
This calls returns a principal associated with the role. |
SecurityContext |
getSecurityContext(java.lang.Object Id)
|
java.lang.String |
getSecurityDomain()
|
boolean |
isGuestAccessAllowed()
Flag set in jrun.xml to allow remote access as guest without providing username and password Set to true by default |
boolean |
isPrincipalInRole(java.security.Principal principal,
java.util.Collection roles,
java.lang.String containerRoleMapDomain)
Is the principal set up to play one of the roles in the set. |
boolean |
isPrincipalValid(java.security.Principal p,
java.lang.Object Credential,
java.lang.String securityDomain)
Authenticate the Principal Credential pair |
void |
modifyLoginModule(java.lang.String domain,
java.util.Properties originalModule,
java.util.Properties updateModule)
|
void |
removeLoginModule(java.lang.String domain,
java.util.Properties loginModule)
|
void |
setAuthConfig(java.lang.String configFileName)
filename for JAAS configuration |
void |
setCheckForSharedPrincipals(boolean checkForSharedPrincipals)
Flag to turn ON checking for shared principals when method authorization fails for an EJB running under runAS identity. |
void |
setGuestAccessAllowed(boolean guestAccessAllowed)
|
void |
setRoleMappingDomain(java.lang.String domain)
The RoleMappingDomain value for Role Resource Authorization can be customized according to the container type. |
void |
setSecurityDomain(java.lang.String domain)
SecurityDomain property decides the configuration in the auth.config file that JAAS uses for authentication This is only for Principal, Credential Authentication. |
void |
setTrustedHost(java.lang.String hostName)
List of trusted hosts for interop |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
| Methods inherited from interface jrunx.kernel.Service |
destroy, getStatus, init, start, stop, updateStatus |
| Method Detail |
public void setSecurityDomain(java.lang.String domain)
SecurityDomain property decides the configuration in the auth.config file that JAAS uses for authentication This is only for Principal, Credential Authentication.
public java.lang.String getSecurityDomain()
public void setRoleMappingDomain(java.lang.String domain)
The RoleMappingDomain value for Role Resource Authorization can be customized according to the container type. The default value comes from jrun.xml
public java.lang.String getRoleMappingDomain()
public void setAuthConfig(java.lang.String configFileName)
public java.lang.String getAuthConfig()
public void setCheckForSharedPrincipals(boolean checkForSharedPrincipals)
public boolean getCheckForSharedPrincipals()
public boolean isGuestAccessAllowed()
public void setGuestAccessAllowed(boolean guestAccessAllowed)
public void setTrustedHost(java.lang.String hostName)
public boolean isPrincipalValid(java.security.Principal p,
java.lang.Object Credential,
java.lang.String securityDomain)
public boolean isPrincipalInRole(java.security.Principal principal,
java.util.Collection roles,
java.lang.String containerRoleMapDomain)
public java.lang.Object authenticateSecurityContext(java.security.Principal principal,
java.lang.Object credential)
throws java.lang.Exception
public java.lang.Object authenticateSecurityContext(java.lang.Object principalname,
java.lang.Object credential)
throws java.lang.Exception
public java.lang.Object authenticateSecurityContext(java.lang.Object principalname,
java.lang.Object credential,
java.lang.String hostName)
throws java.lang.Exception
public SecurityContext getSecurityContext(java.lang.Object Id)
public void closeSecurityContext(java.lang.Object securityContextId)
public boolean checkSharedPrincipals(java.util.Collection permissions,
SimplePrincipal thisPrincipal)
public SimplePrincipal getRunAsIdentityPrincipal(SimplePrincipal thisRole)
public JRunSecurityManager getJRunSecurityManager()
public java.util.ArrayList getLoginModules(java.lang.String domain)
public void addLoginModule(java.lang.String domain,
java.util.Properties loginModule)
throws JRunSecurityException
public void removeLoginModule(java.lang.String domain,
java.util.Properties loginModule)
throws JRunSecurityException
public void modifyLoginModule(java.lang.String domain,
java.util.Properties originalModule,
java.util.Properties updateModule)
throws JRunSecurityException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||