public class HttpDigestCredential extends Object implements Credential
Modifier and Type | Field and Description |
---|---|
static int |
HTTPDIGESTCREDENTIALTYPE_RFC2069
Indicates that the credential is RFC 2069 type.
|
static int |
HTTPDIGESTCREDENTIALTYPE_RFC2617
Indicates that the credential is RFC 2617 type.
|
protected String |
m_Challenge
The challenge.
|
protected String |
m_Cnonce
the cnonce value
|
protected String |
m_Method
the method of access.
|
protected String |
m_Name
The name of the user.
|
protected String |
m_Nc
the nc value
|
protected String |
m_Qop
the qop value
|
protected String |
m_Realm
The realm.
|
protected String |
m_Response
The 32 char hex string representing 16-byte response.
|
protected String |
m_URI
The URI.
|
Constructor and Description |
---|
HttpDigestCredential()
Constructs a HttpDigestCredential.
|
HttpDigestCredential(String name,
String challenge,
String response,
String realm,
String uri,
String method)
Constructs a HttpDigestCredential.
|
HttpDigestCredential(String name,
String challenge,
String response,
String realm,
String uri,
String method,
String qop,
String cnonce,
String nc)
Constructs a HttpDigestCredential.
|
Modifier and Type | Method and Description |
---|---|
String |
getChallenge()
Gets the challenge.
|
String |
getCnonce()
Gets the cnonce.
|
String |
getMethod()
Gets the method.
|
String |
getName()
Gets the name of the user.
|
String |
getNc()
Gets the nc.
|
String |
getQop()
Gets the qop.
|
String |
getRealm()
Gets the realm.
|
String |
getResponse()
Gets the response.
|
int |
getType()
Returns the type of the HttpDigestCredential.
|
String |
getUri()
Gets the URI.
|
void |
setChallenge(String challenge)
Sets the challenge.
|
void |
setCnonce(String cnonce)
Sets the cnonce.
|
void |
setMethod(String method)
Sets the Method.
|
void |
setName(String name)
Sets the name of the user.
|
void |
setNc(String nc)
Sets the nc.
|
void |
setQop(String qop)
Sets the Qop.
|
void |
setRealm(String realm)
Sets the realm.
|
void |
setResponse(String response)
Sets the response.
|
void |
setUri(String uri)
Sets the URI.
|
public static final int HTTPDIGESTCREDENTIALTYPE_RFC2069
public static final int HTTPDIGESTCREDENTIALTYPE_RFC2617
protected String m_Name
protected String m_Challenge
protected String m_Response
protected String m_Realm
protected String m_URI
protected String m_Method
protected String m_Qop
protected String m_Cnonce
protected String m_Nc
public HttpDigestCredential() throws IfsException
IfsException
- if the operation failspublic HttpDigestCredential(String name, String challenge, String response, String realm, String uri, String method, String qop, String cnonce, String nc) throws IfsException
name
- the name of the userchallenge
- the challengeresponse
- the 16-byte responserealm
- the realmuri
- the URImethod
- the methodqop
- the qopcnonce
- the cnoncenc
- the nc valueIfsException
- if the operation failspublic HttpDigestCredential(String name, String challenge, String response, String realm, String uri, String method) throws IfsException
name
- the name of the userchallenge
- the challengeresponse
- the 16-byte responserealm
- the realmuri
- the URImethod
- the methodIfsException
- if the operation failspublic String getName() throws IfsException
getName
in interface Credential
IfsException
- (IFS-10187) if the operation failspublic void setName(String name) throws IfsException
setName
in interface Credential
name
- the name of the userIfsException
- (IFS-10188) if the operation failspublic String getChallenge() throws IfsException
IfsException
- if the operation failspublic void setChallenge(String challenge) throws IfsException
challenge
- the challengeIfsException
- if the operation failspublic String getResponse() throws IfsException
IfsException
- if the operation failspublic void setResponse(String response) throws IfsException
response
- 16 bytes rep as a 32 Hex stringIfsException
- if the operation failspublic String getRealm() throws IfsException
IfsException
- if the operation failspublic void setRealm(String realm) throws IfsException
realm
- the realm of the userIfsException
- if the operation failspublic String getUri() throws IfsException
IfsException
- if the operation failspublic void setUri(String uri) throws IfsException
uri
- the URI of the requestIfsException
- if the operation failspublic String getMethod() throws IfsException
IfsException
- if the operation failspublic void setMethod(String method) throws IfsException
method
- the Method of the requestIfsException
- if the operation failspublic String getQop() throws IfsException
IfsException
- if the operation failspublic void setQop(String qop) throws IfsException
qop
- the Qop of the requestIfsException
- if the operation failspublic String getCnonce() throws IfsException
IfsException
- if the operation failspublic void setCnonce(String cnonce) throws IfsException
cnonce
- the cnonce of the requestIfsException
- if the operation failspublic String getNc() throws IfsException
IfsException
- if the operation failspublic void setNc(String nc) throws IfsException
nc
- the nonce of the requestIfsException
- if the operation failspublic int getType()
Copyright © 2023. All rights reserved.