|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.ChallengeMessage
org.restlet.data.ChallengeRequest
public final class ChallengeRequest
Authentication challenge sent by an origin server to a client. Upon reception
of this request, the client should send a new request with the proper
ChallengeResponse
set.
Note that when used with HTTP connectors, this class maps to the
"WWW-Authenticate" header.
Field Summary |
---|
Fields inherited from class org.restlet.data.ChallengeMessage |
---|
QUALITY_AUTHENTICATION, QUALITY_AUTHENTICATION_INTEGRITY |
Constructor Summary | |
---|---|
ChallengeRequest(ChallengeScheme scheme)
Constructor. |
|
ChallengeRequest(ChallengeScheme scheme,
String realm)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<Reference> |
getDomainRefs()
Returns the base URI references that collectively define the protected domains for the digest authentication. |
List<String> |
getQualityOptions()
Returns the available options for quality of protection. |
boolean |
isStale()
Indicates if the previous request from the client was stale. |
void |
setDomainRefs(List<Reference> domainRefs)
Sets the URI references that define the protection domains for the digest authentication. |
void |
setDomainUris(Collection<String> domainUris)
Sets the URI references that define the protection domains for the digest authentication. |
void |
setQualityOptions(List<String> qualityOptions)
Sets the available options for quality of protection. |
void |
setStale(boolean stale)
Indicates if the previous request from the client was stale. |
Methods inherited from class org.restlet.data.ChallengeMessage |
---|
getDigestAlgorithm, getOpaque, getParameters, getRawValue, getRealm, getScheme, getServerNonce, hashCode, setDigestAlgorithm, setOpaque, setParameters, setRawValue, setRealm, setScheme, setServerNonce |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChallengeRequest(ChallengeScheme scheme)
scheme
- The challenge scheme.public ChallengeRequest(ChallengeScheme scheme, String realm)
scheme
- The challenge scheme.realm
- The authentication realm.Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public List<Reference> getDomainRefs()
public List<String> getQualityOptions()
ChallengeMessage.QUALITY_AUTHENTICATION
.
public boolean isStale()
public void setDomainRefs(List<Reference> domainRefs)
domainRefs
- The base URI references.public void setDomainUris(Collection<String> domainUris)
CopyOnWriteArrayList
instance.
domainUris
- The base URI references.setDomainRefs(List)
public void setQualityOptions(List<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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |