org.sblim.cimclient.internal.http
public abstract class AuthorizationInfo extends Object
See Also: WwwAuthInfo PegasusLocalAuthInfo
| Field Summary | |
|---|---|
| protected String | iA1 |
| protected String | iAddr |
| protected String | iAlgorithm |
| protected String | iCnonce |
| protected PasswordAuthentication | iCredentials |
| protected long | iNc |
| protected String | iNonce |
| protected String | iOpaque |
| protected int | iPort |
| protected String | iProtocol |
| protected String | iQop |
| protected String | iRealm |
| protected String | iResponse |
| protected String | iScheme |
| protected String | iUri |
| Method Summary | |
|---|---|
| static AuthorizationInfo | createAuthorizationInfo(String pModule, Boolean pProxy, String pAddress, int pPort, String pProtocol, String pRealm, String pScheme)
Factory method for AuthorizationInfo objects. |
| static AuthorizationInfo | createAuthorizationInfo(String pModule)
Factory method for AuthorizationInfo objects. |
| String | getA1()
Returns A1
|
| String | getAddr()
Returns the address
|
| String | getAlgorithm()
Returns algorithm
|
| String | getCnonce()
Returns cnonce
|
| PasswordAuthentication | getCredentials()
Returns the credentials
|
| abstract String | getHeaderFieldName()
Gets the HTTP header field name for this authentication information
|
| long | getNc()
Returns nc
|
| String | getNonce()
Returns nonce
|
| String | getOpaque()
Returns opaque
|
| int | getPort()
Returns the port
|
| String | getProtocol()
Returns the protocol
|
| String | getQop()
Returns Qop
|
| String | getRealm()
Returns the realm
|
| String | getResponse()
Returns response
|
| String | getScheme()
Returns the scheme
|
| String | getURI()
Returns URI
|
| void | init(Boolean pProxy, String pAddress, int pPort, String pProtocol, String pRealm, String pScheme)
Initialize
|
| abstract boolean | isKeptAlive()
Determines if the connection is kept alive after the "401 Unauthorized"
response
|
| abstract boolean | isSentOnFirstRequest()
Determines if the authorization information is already sent on the very
first http request or after the "401 Unauthorized" response
|
| boolean | match(Object obj)
Compares two authorization informations.
|
| void | setA1(String A1)
Sets A1
|
| void | setAlgorithm(String algorithm)
Set algorithm
|
| void | setCnonce(String cnonce)
Set cnonce
|
| void | setCredentials(PasswordAuthentication credentials)
Sets credentials
|
| void | setNc(long nc)
Sets nc
|
| void | setNonce(String nonce)
Sets nonce
|
| void | setOpaque(String opaque)
Sets opaque
|
| void | setQop(String qop)
Sets Qop
|
| void | setRealm(String realm)
Sets the realm
|
| void | setResponse(String response)
Sets response
|
| void | setScheme(String scheme)
Sets the scheme
|
| void | setURI(String uri)
Sets URI
|
| abstract void | updateAuthenticationInfo(Challenge challenge, String authenticate, URI url, String requestMethod)
Updates the authorization information according to a received challenge.
|
Parameters: pModule The authorization info type to be constructed pProxy Proxy authentication ? pAddress Server address pPort Server port pProtocol Protocol (http/https) pRealm Realm pScheme Scheme (e.g. Basic, Digest)
Returns: An instance of a AuthorizationInfo subclass or null
See Also: getHttpAuthenticationModule WwwAuthInfo PegasusLocalAuthInfo
Parameters: pModule The authorization info type to be constructed
Returns: An instance of a AuthorizationInfo subclass or null
Returns: A1
Returns: The server address
Returns: algorithm
Returns: cnonce
Returns: The credentials
Returns: The field name
Returns: nc
Returns: nonce
Returns: Opaque
Returns: The server port
Returns: The protocol
Returns: Qop
Returns: The realm
Returns: New value
Returns: The scheme
Returns: URI
Parameters: pProxy Proxy authentication ? pAddress Server address pPort Server port pProtocol Protocol pRealm Realm pScheme Scheme
Returns: true or false
Returns: true or false
Parameters: obj The other authorization information
Returns: true if type, realm, scheme, address, protocol and
port of both authorization informations are equal,
false otherwise.
Parameters: A1 New value
Parameters: algorithm New value
Parameters: cnonce New value
Parameters: credentials New value
Parameters: nc New value
Parameters: nonce New Value
Parameters: opaque new Value
Parameters: qop New value
Parameters: realm New value
Parameters: response New value
Parameters: scheme New value
Parameters: uri New value
Parameters: challenge The received challenge authenticate The authenticate header field url The url of the CIM server requestMethod The HTTP request method (POST or MPOST)
Throws: NoSuchAlgorithmException