public abstract class ChallengeMessage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
QUALITY_AUTHENTICATION
Authentication quality.
|
static java.lang.String |
QUALITY_AUTHENTICATION_INTEGRITY
Authentication and integrity.
|
Constructor and Description |
---|
ChallengeMessage(ChallengeScheme scheme)
Constructor.
|
ChallengeMessage(ChallengeScheme scheme,
Series<Parameter> parameters)
Constructor.
|
ChallengeMessage(ChallengeScheme scheme,
java.lang.String realm)
Constructor.
|
ChallengeMessage(ChallengeScheme scheme,
java.lang.String realm,
Series<Parameter> parameters)
Constructor.
|
ChallengeMessage(ChallengeScheme scheme,
java.lang.String realm,
Series<Parameter> parameters,
java.lang.String digestAlgorithm,
java.lang.String opaque,
java.lang.String serverNonce)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDigestAlgorithm()
Returns the digest algorithm.
|
java.lang.String |
getOpaque()
Returns an opaque string of data which should be returned by the client
unchanged.
|
Series<Parameter> |
getParameters()
Returns the modifiable series of scheme parameters.
|
java.lang.String |
getRawValue()
Returns the raw challenge value.
|
java.lang.String |
getRealm()
Returns the realm name.
|
ChallengeScheme |
getScheme()
Returns the scheme used.
|
java.lang.String |
getServerNonce()
Returns the server nonce.
|
int |
hashCode() |
void |
setDigestAlgorithm(java.lang.String digestAlgorithm)
Sets the digest algorithm.
|
void |
setOpaque(java.lang.String opaque)
Sets an opaque string of data which should be returned by the client
unchanged.
|
void |
setParameters(Series<Parameter> parameters)
Sets the parameters.
|
void |
setRawValue(java.lang.String rawValue)
Sets the raw value.
|
void |
setRealm(java.lang.String realm)
Sets the realm name.
|
void |
setScheme(ChallengeScheme scheme)
Sets the scheme used.
|
void |
setServerNonce(java.lang.String serverNonce)
Sets the server nonce.
|
public static final java.lang.String QUALITY_AUTHENTICATION
public static final java.lang.String QUALITY_AUTHENTICATION_INTEGRITY
public ChallengeMessage(ChallengeScheme scheme)
scheme
- The challenge scheme.public ChallengeMessage(ChallengeScheme scheme, Series<Parameter> parameters)
scheme
- The challenge scheme.parameters
- The additional scheme parameters.public ChallengeMessage(ChallengeScheme scheme, java.lang.String realm)
scheme
- The challenge scheme.realm
- The authentication realm.public ChallengeMessage(ChallengeScheme scheme, java.lang.String realm, Series<Parameter> parameters)
scheme
- The challenge scheme.realm
- The authentication realm.parameters
- The additional scheme parameters.public ChallengeMessage(ChallengeScheme scheme, java.lang.String realm, Series<Parameter> parameters, java.lang.String digestAlgorithm, java.lang.String opaque, java.lang.String serverNonce)
scheme
- The challenge scheme.realm
- The authentication realm.parameters
- The additional scheme parameters.digestAlgorithm
- The digest algorithm.opaque
- An opaque string of data which should be returned by the
client unchanged.serverNonce
- The server nonce.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getDigestAlgorithm()
Digest
class for DIGEST_*
constants. Default value is Digest.ALGORITHM_MD5
.public java.lang.String getOpaque()
public Series<Parameter> getParameters()
public java.lang.String getRawValue()
public java.lang.String getRealm()
public ChallengeScheme getScheme()
public java.lang.String getServerNonce()
public int hashCode()
hashCode
in class java.lang.Object
public void setDigestAlgorithm(java.lang.String digestAlgorithm)
Digest
class for ALGORITHM_*
constants. Default value is Digest.ALGORITHM_MD5
.digestAlgorithm
- The digest algorithm.public void setOpaque(java.lang.String opaque)
opaque
- An opaque string of data.public void setParameters(Series<Parameter> parameters)
parameters
- The parameters.public void setRawValue(java.lang.String rawValue)
rawValue
- The raw value.public void setRealm(java.lang.String realm)
realm
- The realm name.public void setScheme(ChallengeScheme scheme)
scheme
- The scheme used.public void setServerNonce(java.lang.String serverNonce)
serverNonce
- The server nonce.Copyright © 2005-2024 Restlet.