public final class ChallengeRequest extends ChallengeMessage
ChallengeResponse
set.QUALITY_AUTHENTICATION, QUALITY_AUTHENTICATION_INTEGRITY
Constructor and Description |
---|
ChallengeRequest(ChallengeScheme scheme)
Constructor.
|
ChallengeRequest(ChallengeScheme scheme,
java.lang.String realm)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Reference> |
getDomainRefs()
Returns the base URI references that collectively define the protected
domains for the digest authentication.
|
java.util.List<java.lang.String> |
getQualityOptions()
Returns the available options for quality of protection.
|
int |
hashCode() |
boolean |
isStale()
Indicates if the previous request from the client was stale.
|
void |
setDomainRefs(java.util.List<Reference> domainRefs)
Sets the URI references that define the protection domains for the digest
authentication.
|
void |
setDomainUris(java.util.Collection<java.lang.String> domainUris)
Sets the URI references that define the protection domains for the digest
authentication.
|
void |
setQualityOptions(java.util.List<java.lang.String> qualityOptions)
Sets the available options for quality of protection.
|
void |
setStale(boolean stale)
Indicates if the previous request from the client was stale.
|
getDigestAlgorithm, getOpaque, getParameters, getRawValue, getRealm, getScheme, getServerNonce, setDigestAlgorithm, setOpaque, setParameters, setRawValue, setRealm, setScheme, setServerNonce
public ChallengeRequest(ChallengeScheme scheme)
scheme
- The challenge scheme.public ChallengeRequest(ChallengeScheme scheme, java.lang.String realm)
scheme
- The challenge scheme.realm
- The authentication realm.public boolean equals(java.lang.Object obj)
equals
in class ChallengeMessage
public java.util.List<Reference> getDomainRefs()
public java.util.List<java.lang.String> getQualityOptions()
ChallengeMessage.QUALITY_AUTHENTICATION
.public int hashCode()
ChallengeMessage
hashCode
in class ChallengeMessage
public boolean isStale()
public void setDomainRefs(java.util.List<Reference> domainRefs)
domainRefs
- The base URI references.public void setDomainUris(java.util.Collection<java.lang.String> domainUris)
CopyOnWriteArrayList
instance.domainUris
- The base URI references.setDomainRefs(List)
public void setQualityOptions(java.util.List<java.lang.String> qualityOptions)
ChallengeMessage.QUALITY_AUTHENTICATION
.qualityOptions
- The available options for quality of protection.public void setStale(boolean stale)
stale
- True if the previous request from the client was stale.Copyright © 2005-2024 Restlet.