About this task
To complete authentication, your .NET application must implement
the following interfaces:
- ICredential: A Credential represents a client
credential, such as a user ID and password pair.
- ICredentialGenerator: A CredentialGenerator
represents a credential factory to generate the credential.
When a .NET client application connects to a server that requires
authentication, the client is required to provide a client credential.
A client credential is represented by the
ICredential interface.
A client credential can be a user name and password pair, a Kerberos
ticket, a client certificate, or data in any format that the client
and server agree upon. This interface explicitly defines the
equals(Object) and
hashCode methods.
These two methods are important because the authenticated Subject
objects are cached by using the Credential object as the key on the
server side. You can also generate a credential with the
ICredentialGenerator interface.
This interface is useful when the credential can expire. A new credential
is generated whenever the Credential property is obtained.
You
can also use the provided CredentialGenerator plug-in
to create a credential that is based on the credentialGeneratorProps= setting
in the Client.Net.Properties file. The additional
settings that define the credential plug-in are credentialGeneratorAssembly and credentialGeneratorClass.