|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.rdg.resc.jstyx.server.StyxFile
uk.ac.rdg.resc.jstyx.server.InMemoryFile
uk.ac.rdg.resc.jstyx.server.AuthFile
public class AuthFile
StyxFile that is used to exchange authentication information. Clients must write their password into this file.
| Field Summary |
|---|
| Fields inherited from class uk.ac.rdg.resc.jstyx.server.InMemoryFile |
|---|
buf |
| Fields inherited from class uk.ac.rdg.resc.jstyx.server.StyxFile |
|---|
auth, directory, lastModifiedTime, name, parent |
| Constructor Summary | |
|---|---|
AuthFile(StyxSecurityContext securityContext,
java.lang.String username)
Creates a new instance of AuthFile |
|
| Method Summary | |
|---|---|
User |
getUser()
|
boolean |
isAuthenticated(java.lang.String username)
|
| Methods inherited from class uk.ac.rdg.resc.jstyx.server.InMemoryFile |
|---|
delete, getContents, getLength, main, read, setContents, write |
| Methods inherited from class uk.ac.rdg.resc.jstyx.server.StyxFile |
|---|
addChangeListener, addClient, checkSetLastModifiedTime, checkSetLength, checkSetMode, checkSetName, clientConnected, clientDisconnected, contentsChanged, fireContentsChanged, getClient, getDirEntry, getFullPath, getGroup, getName, getNumClients, getOwner, getParent, getPermissions, getQid, getVersion, incrementVersion, isAppendOnly, isAuth, isDirectory, isExclusive, processAndReplyRead, processAndReplyRead, processAndReplyRead, refresh, remove, removeChangeListener, removeClient, rename, replyRead, replyRead, replyRead, replyRead, replyRead, replyWrite, setLastAccessTime, setLastModified, setLength, setMode, setName, setPermissions, setReadOnly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthFile(StyxSecurityContext securityContext,
java.lang.String username)
throws StyxException
securityContext - The security context for this connectionusername - The name of the user (as claimed by the user)
StyxSecurityException - if the user could not be identified or
if there was an error reading from the security context information
StyxException| Method Detail |
|---|
public boolean isAuthenticated(java.lang.String username)
public User getUser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||