|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.rdg.resc.jstyx.server.StyxSecurityContext
public class StyxSecurityContext
Describes security information for a Styx server. This is used for finding valid users and groups and whether or not anonymous logins are allowed.
| Constructor Summary | |
|---|---|
StyxSecurityContext()
Creates a security context in which anonymous logins are allowed, SSL is not used and authentication is not supported |
|
StyxSecurityContext(java.lang.String securityFile)
Creates a new StyxSecurityContext from a configuration file |
|
| Method Summary | |
|---|---|
boolean |
allowsAnonymousLogin()
|
User |
getAnonymousUser()
|
javax.net.ssl.SSLContext |
getSSLContext()
|
User |
getUser(java.lang.String username)
|
boolean |
isMember(java.lang.String username,
java.lang.String group)
|
static void |
main(java.lang.String[] args)
Simple test routine |
boolean |
supportsAuthentication()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyxSecurityContext()
public StyxSecurityContext(java.lang.String securityFile)
throws StyxSecurityException
securityFile - XML File from which security information is to be read.
If this is null, access to the server will be anonymous and unsecured.
StyxSecurityException - if the security config file could not be read| Method Detail |
|---|
public boolean allowsAnonymousLogin()
public boolean supportsAuthentication()
public javax.net.ssl.SSLContext getSSLContext()
public User getAnonymousUser()
public User getUser(java.lang.String username)
throws StyxSecurityException
StyxSecurityException - if a user with the given name does not
exist in this security context or if this server does not support authentication
or if there was an error finding the user's details
public boolean isMember(java.lang.String username,
java.lang.String group)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||