|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tivoli.pd.jutil.PDContext
This class encapsulates the communication session between the client application and the Policy Director Management Server. It includes the client authentication, the client locale used to translate any returned data and the Management Server location.
Field Summary | |
static int |
PDAUTHTYPE_CERT
Indicates a PDContext authenticated with a certficate. |
static int |
PDAUTHTYPE_ID
Indicates a PDContext authenticated with a user id and password. |
Constructor Summary | |
PDContext(java.util.Locale locale,
java.lang.String userid,
char[] password,
java.net.URL configURL)
Contructs a PDContext based on a userid-password authentication and configuration information contained in the input configuration URL. |
|
PDContext(java.util.Locale locale,
java.net.URL configURL)
Contructs a PDContext based on a certificate authentication and configuration information contained in the input configuration URL. |
|
PDContext(java.lang.String userid,
char[] password,
java.net.URL configURL)
Contructs a PDContext based on a userid-password authentication and configuration information contained in the input configuration URL. |
|
PDContext(java.net.URL configURL)
Contructs a PDContext based on a certificate authentication and configuration information contained in the input configuration URL. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Determines whether this PDContext is equivalent to the input object. |
int |
getAuthType()
Returns the authentication type used in this context. |
java.util.Locale |
getLocale()
Returns the locale that any return messages or error text will be translated into. |
java.lang.String |
getUserid()
Returns the user whose authentication was used to establish this context. |
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PDAUTHTYPE_ID
public static final int PDAUTHTYPE_CERT
Constructor Detail |
public PDContext(java.util.Locale locale, java.lang.String userid, char[] password, java.net.URL configURL) throws PDException
This method requires the
javax.security.auth.AuthPermission("PDAdmin")
permission.
locale
- locale for any data that is returned.userid
- id of the user to be authenticated as.password
- password of the user to be authenticated as.configURL
- a URL reference to configuration data. The caller must
have permission to access and read this URL. This URL is the same as the
one specified to the SvrSslCfg
configuration
program. Note that the SvrSslCfg
configuration program needs to be run with a "simple name"
specified for its first parameter. Currently, the only
protocol supported is the "file" protocol; this restriction may be
removed in a future release.PDException
- on input argument errors.
This exception may contain error and message codes defined in the
product Error Message Reference document.public PDContext(java.lang.String userid, char[] password, java.net.URL configURL) throws PDException
This method requires the
javax.security.auth.AuthPermission("PDAdmin")
permission.
userid
- id of the user to be authenticated as.password
- password of the user to be authenticated as.configURL
- a URL reference to configuration data. The caller must
have permission to access and read this URL. This URL is the same as the
one specified to the SvrSslCfg
configuration
program. Note that the SvrSslCfg
configuration program needs to be run with a "simple name"
specified for its first parameter. Currently, the only
protocol supported is the "file" protocol; this restriction may be
removed in a future release.PDException
- on input argument errors.
This exception may contain error and message codes defined in the
product Error Message Reference document.public PDContext(java.util.Locale locale, java.net.URL configURL) throws PDException
This method requires the
javax.security.auth.AuthPermission("PDAdmin")
permission.
locale
- locale for any data that is returned.configURL
- a URL reference to configuration data. The caller must
have permission to access and read this URL. This URL is the same as the
one specified to the SvrSslCfg
configuration
program. Note that the SvrSslCfg
configuration program needs to be run with a "simple name"
specified for its first parameter. Currently, the only
protocol supported is the "file" protocol; this restriction may be
removed in a future release.PDException
- on input argument errors.
This exception may contain error and message codes defined in the
product Error Message Reference document.public PDContext(java.net.URL configURL) throws PDException
This method requires the
javax.security.auth.AuthPermission("PDAdmin")
permission.
configURL
- a URL reference to configuration data. The caller must
have permission to access and read this URL. This URL is the same as the
one specified to the SvrSslCfg
configuration
program. Note that the SvrSslCfg
configuration program needs to be run with a "simple name"
specified for its first parameter. Currently, the only
protocol supported is the "file" protocol; this restriction may be
removed in a future release.PDException
- on input argument errors.
This exception may contain error and message codes defined in the
product Error Message Reference document.Method Detail |
public java.util.Locale getLocale()
public java.lang.String getUserid()
public int getAuthType()
PDContext.PDAUTHTYPE_ID
if this context has been
authenticated with a userid and password or
PDContext.PDAUTHTYPE_CERT
if this context has been
authenticated with a certificate.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |