This interface is used by the Authentication Service to have the
Principal authenticated by the realm. A realm provides an
implementation of this interface.
This method authenticates the given principal using the specified
authentication data and the Principal's Credentials. The result of
the authentication is returned back.
param
The principal (user) being authenticated.
param
The data needed for authentication.
return
boolean denoting true for success and false for failure
authentication.