public interface DigestCredential extends Credential
Credential to provide some additional methods needed to enable verification of a request where
DigestAuthenticationMechanism is in use.| Modifier and Type | Method and Description |
|---|---|
DigestAlgorithm |
getAlgorithm()
Obtain the selected
DigestAlgorithm for the request being authenticated. |
String |
getRealm()
Get the realm name the credential is being validated against.
|
byte[] |
getSessionData()
If the algorithm is session based return the session data to be included when generating the ha1.
|
boolean |
verifyHA1(byte[] ha1)
Called by the
IdentityManager implementation to pass in the hex encoded a1 representation for validation against
the current request. |
DigestAlgorithm getAlgorithm()
DigestAlgorithm for the request being authenticated.DigestAlgorithm for the request being authenticated.boolean verifyHA1(byte[] ha1)
IdentityManager implementation to pass in the hex encoded a1 representation for validation against
the current request.
The Credential is self validating based on the information passed in here, if verification is successful then the
IdentityManager can return the appropriate Account representation.ha1 - - The hex encoded a1 value.String getRealm()
byte[] getSessionData()
IllegalStateException - where the algorithm is not session based.Copyright © 2016 JBoss by Red Hat. All rights reserved.