public class SecurityHandler extends java.lang.Object implements SecurityHandlerIF
Constructor and Description |
---|
SecurityHandler() |
SecurityHandler(java.util.Properties properties) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
aoExceptionToString(AoException aoException) |
protected void |
check(AoSession aoSession,
java.lang.String name,
java.lang.String aName,
java.lang.String iName) |
protected void |
check(AoSession aoSession,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid) |
void |
checkContextDelete(AoSession aoSession,
java.lang.String name)
Check context delete.
|
void |
checkContextRead(AoSession aoSession,
java.lang.String name)
Check context read.
|
void |
checkContextWrite(AoSession aoSession,
java.lang.String name,
java.lang.String value)
Check context write.
|
void |
checkDelete(AoSession aoSession,
java.lang.String url,
T_LONGLONG aid,
T_LONGLONG iid)
Check delete.
|
void |
checkRead(AoSession aoSession,
java.lang.String url,
T_LONGLONG aid,
T_LONGLONG iid)
Check read.
|
void |
checkTerminate(AoSession aoSession,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
Check terminate.
|
void |
checkWrite(AoSession aoSession,
java.lang.String name,
java.lang.String aeName,
java.lang.String ieName)
Check write.
|
void |
checkWrite(AoSession aoSession,
java.lang.String name,
T_LONGLONG aid,
T_LONGLONG iid)
Check write.
|
static java.lang.String |
severityFlagToString(SeverityFlag sevFlag) |
public SecurityHandler() throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
public SecurityHandler(java.util.Properties properties) throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
public static java.lang.String aoExceptionToString(AoException aoException)
public static java.lang.String severityFlagToString(SeverityFlag sevFlag)
protected void check(AoSession aoSession, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
CORBAFileServerException
protected void check(AoSession aoSession, java.lang.String name, java.lang.String aName, java.lang.String iName) throws CORBAFileServerException
CORBAFileServerException
public void checkWrite(AoSession aoSession, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
checkWrite
in interface SecurityHandlerIF
aoSession
- the ASAM ODS session.name
- the name of the file.aid
- the application element id.iid
- the instance element id.CORBAFileServerException
- with the following possible error codes:
FILESERVER_ACCESS_DENIED
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYpublic void checkRead(AoSession aoSession, java.lang.String url, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
checkRead
in interface SecurityHandlerIF
aoSession
- the ASAM ODS session.url
- the url of the file.aid
- the application element id.iid
- the instance element id.CORBAFileServerException
- with the following possible error codes:
FILESERVER_ACCESS_DENIED
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYpublic void checkDelete(AoSession aoSession, java.lang.String url, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
checkDelete
in interface SecurityHandlerIF
aoSession
- the ASAM ODS session.url
- the url of the file.aid
- the application element id.iid
- the instance element id.CORBAFileServerException
- with the following possible error codes:
FILESERVER_ACCESS_DENIED
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYpublic void checkContextWrite(AoSession aoSession, java.lang.String name, java.lang.String value) throws CORBAFileServerException
checkContextWrite
in interface SecurityHandlerIF
aoSession
- the ASAM ODS session.name
- the name of the context keyword.value
- the new value.CORBAFileServerException
- with the following possible error codes:
FILESERVER_ACCESS_DENIED
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYpublic void checkContextRead(AoSession aoSession, java.lang.String name) throws CORBAFileServerException
checkContextRead
in interface SecurityHandlerIF
aoSession
- the ASAM ODS session.name
- the name of the context keyword. If this value is null the client wants to list all keywords.CORBAFileServerException
- with the following possible error codes:
FILESERVER_ACCESS_DENIED
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYpublic void checkContextDelete(AoSession aoSession, java.lang.String name) throws CORBAFileServerException
checkContextDelete
in interface SecurityHandlerIF
aoSession
- the ASAM ODS session.name
- the name of the context keyword.CORBAFileServerException
- with the following possible error codes:
FILESERVER_ACCESS_DENIED
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYpublic void checkWrite(AoSession aoSession, java.lang.String name, java.lang.String aeName, java.lang.String ieName) throws CORBAFileServerException
checkWrite
in interface SecurityHandlerIF
aoSession
- the ASAM ODS session.name
- the name of the file.aeName
- the application element name.ieName
- the instance element name.CORBAFileServerException
- with the following possible error codes:
FILESERVER_ACCESS_DENIED
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORYpublic void checkTerminate(AoSession aoSession, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
checkTerminate
in interface SecurityHandlerIF
aoSession
- the ASAM ODS session.name
- the name of the file.aid
- the application element id.iid
- the instance element id.CORBAFileServerException
- with the following possible error codes:
FILESERVER_ACCESS_DENIED
FILESERVER_CONNECT_FAILED
FILESERVER_BAD_PARAMETER
FILESERVER_CONNECTION_LOST
FILESERVER_IMPLEMENTATION_PROBLEM
FILESERVER_NOT_IMPLEMENTED
FILESERVER_NO_MEMORY