public abstract class AuthGeneric
extends java.lang.Object
Constructor and Description |
---|
AuthGeneric(java.lang.String pServer,
java.lang.String pUser,
java.lang.String pPassword,
java.lang.String pParam)
Constructor of the parent class of all authenticators
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Authenticate(java.lang.String User,
java.lang.String Pass)
Authenticates the user against the server defined and
thows an exception if the authentication fails.
|
java.util.Properties |
getProp()
Returns the properties used for custom authenticators
|
void |
setProp(java.util.Properties Prop)
Assign the properties used for custom authenticators
|
void |
UpdatePass(java.lang.String User,
java.lang.String NewPass)
Method to change the password when is allowed by the kind and actual authenticator
|
public AuthGeneric(java.lang.String pServer, java.lang.String pUser, java.lang.String pPassword, java.lang.String pParam)
pServer
- url/UNC reference to serverpUser
- User for connection to system (optional, depends on authenticator)pPassword
- Password for connection to system (optional, depends on authenticator)pParam
- additional param, depends on authenticatorpublic abstract void Authenticate(java.lang.String User, java.lang.String Pass) throws PDException
User
- user to authenticatePass
- Password (in clear)of the userPDException
- if the user is nos authenticatedpublic void UpdatePass(java.lang.String User, java.lang.String NewPass) throws PDException
User
- User who will change his passwordNewPass
- New Password to assignPDException
- In any problempublic java.util.Properties getProp()
public void setProp(java.util.Properties Prop)
Prop
- the Prop to set