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.IllegalAccessExceptionpublic SecurityHandler(java.util.Properties properties)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic 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
CORBAFileServerExceptionprotected void check(AoSession aoSession, java.lang.String name, java.lang.String aName, java.lang.String iName) throws CORBAFileServerException
CORBAFileServerExceptionpublic void checkWrite(AoSession aoSession, java.lang.String name, T_LONGLONG aid, T_LONGLONG iid) throws CORBAFileServerException
checkWrite in interface SecurityHandlerIFaoSession - 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 SecurityHandlerIFaoSession - 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 SecurityHandlerIFaoSession - 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 SecurityHandlerIFaoSession - 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 SecurityHandlerIFaoSession - 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 SecurityHandlerIFaoSession - 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 SecurityHandlerIFaoSession - 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 SecurityHandlerIFaoSession - 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