org.eclipse.webdav.internal.authentication
Class AuthenticationInfo

java.lang.Object
  extended by org.eclipse.webdav.internal.authentication.AuthenticationInfo

public class AuthenticationInfo
extends Object

Parses the HTTP "Authentication-Info" header field. The header field has the following form: auth-info = 1#(nextnonce | [ message-qop ] | [ response-auth ] | [ cnonce ] | [ nonce-count ] ) nextnonce = "nextnonce" "=" nonce-value nonce-value = quoted-string message-qop = "qop" "=" qop-value qop-value = "auth" | "auth-int" | token response-auth = "rspauth" "=" response-digest response-digest = <"> *LHEX <"> cnonce = "cnonce" "=" cnonce-value cnonce-value = nonce-value nonce-count = "nc" "=" nc-value nc-value = 8LHEX An auth-info may look like this: Authentication-Info: nextnonce="dcd98b7102dd2f0e8b11d0f600bfb0c093", qop="auth", rspauth="5ccc069c403ebaf9f0171e9517f40e41", cnonce="0a4f113b", nc=00000001


Constructor Summary
AuthenticationInfo(String authInfo)
          Parses the given authentication info.
 
Method Summary
 String getCNonce()
          Returns the value of the cnonce parameter, or null if the parameter does not exist.
 String getMessageQop()
          Returns the value of the qop parameter, or null if the parameter does not exist.
 String getNextNonce()
          Returns the value of the nextnonce parameter, which must exist.
 String getNonceCount()
          Returns the value of the nc parameter, or null if the parameter does not exist.
 String getResponseAuth()
          Returns the value of the rspauth parameter, or null if the parameter does not exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationInfo

public AuthenticationInfo(String authInfo)
                   throws ParserException
Parses the given authentication info.

Parameters:
authInfo -
Throws:
ParserException - if the info is malformed
Method Detail

getCNonce

public String getCNonce()
Returns the value of the cnonce parameter, or null if the parameter does not exist.


getMessageQop

public String getMessageQop()
Returns the value of the qop parameter, or null if the parameter does not exist.


getNextNonce

public String getNextNonce()
Returns the value of the nextnonce parameter, which must exist.


getNonceCount

public String getNonceCount()
Returns the value of the nc parameter, or null if the parameter does not exist.


getResponseAuth

public String getResponseAuth()
Returns the value of the rspauth parameter, or null if the parameter does not exist.



Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.