| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private static final char[] | |
| private static final String | |
| private static final boolean | |
| private static final Set | |
| private static final String | |
| private static final PlatformLogger | |
| pack-priv DigestAuthentication. | |
| private static final String | |
| private static final String | |
| private static final String[] |
| Access | Constructor and Description |
|---|---|
| public | DigestAuthentication(boolean isProxy, URL url, String realm, String authMethod, PasswordAuthentication pw, DigestAuthentication.
Create a DigestAuthentication |
| public | DigestAuthentication(boolean isProxy, String host, int port, String realm, String authMethod, PasswordAuthentication pw, DigestAuthentication.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private String | |
| private String | |
| private String | |
| public String | Returns: the value of the HTTP header this authentication wants setthe URL url, String the HTTP method method)Implements abstract sun. Recalculates the request-digest and returns it. |
| pack-priv String | Returns: the value of the HTTP header this authentication wants setthe Request-URI from the HTTP request line requestURI, String the HTTP method method)Recalculates the request-digest and returns it. |
| private String | |
| private static byte[] | |
| public boolean | isAuthorizationStale(String header)
Implements abstract sun. Check if the header indicates that the current auth. |
| private static void | |
| private static void | |
| private static void | |
| public void | setHeaders(HttpURLConnection
The connection to apply the header(s) to conn, HeaderParser A source of header values for this connection, if needed. p, String Raw header values for this connection, if needed. raw)Implements abstract sun. Set header(s) on the given connection. |
| public boolean | supportsPreemptiveAuthorization()
Implements abstract sun. Returns: true if this authentication supports preemptive authorization |
| private void |
| authMethod | back to summary |
|---|---|
| private String authMethod | |
| charArray | back to summary |
|---|---|
| private static final char[] charArray | |
| compatPropName | back to summary |
|---|---|
| private static final String compatPropName | |
| delimCompatFlag | back to summary |
|---|---|
| private static final boolean delimCompatFlag | |
| disabledDigests | back to summary |
|---|---|
| private static final Set<String> disabledDigests | |
| enabledAlgPropName | back to summary |
|---|---|
| private static final String enabledAlgPropName | |
| logger | back to summary |
|---|---|
| private static final PlatformLogger logger | |
| params | back to summary |
|---|---|
| pack-priv DigestAuthentication. | |
| propPrefix | back to summary |
|---|---|
| private static final String propPrefix | |
| secPropName | back to summary |
|---|---|
| private static final String secPropName | |
| zeroPad | back to summary |
|---|---|
| private static final String[] zeroPad | |
| DigestAuthentication | back to summary |
|---|---|
| public DigestAuthentication(boolean isProxy, URL url, String realm, String authMethod, PasswordAuthentication pw, DigestAuthentication. Create a DigestAuthentication | |
| DigestAuthentication | back to summary |
|---|---|
| public DigestAuthentication(boolean isProxy, String host, int port, String realm, String authMethod, PasswordAuthentication pw, DigestAuthentication. | |
| checkResponse | back to summary |
|---|---|
| public void checkResponse(String header, String method, URL url) throws IOException | |
| checkResponse | back to summary |
|---|---|
| public void checkResponse(String header, String method, String uri) throws IOException | |
| computeDigest | back to summary |
|---|---|
| private String computeDigest(boolean isRequest, String userName, char[] password, String realm, String connMethod, String requestURI, String nonceString, String cnonce, String ncValue, String algorithm, boolean session, Charset charset) throws NoSuchAlgorithmException, CharacterCodingException | |
| computeUserhash | back to summary |
|---|---|
| private String computeUserhash(String digest, String user, String realm, Charset charset) throws NoSuchAlgorithmException, CharacterCodingException | |
| encode | back to summary |
|---|---|
| private String encode(String src, char[] passwd, MessageDigest md, Charset charset) throws CharacterCodingException | |
| getHeaderValue | back to summary |
|---|---|
| public String getHeaderValue(URL url, String method) Implements abstract sun. Recalculates the request-digest and returns it. Used in the common case where the requestURI is simply the abs_path. | |
| getHeaderValue | back to summary |
|---|---|
| pack-priv String getHeaderValue(String requestURI, String method) Recalculates the request-digest and returns it. Used when the requestURI is not the abs_path. The exact requestURI can be passed as a String. | |
| getHeaderValueImpl | back to summary |
|---|---|
| private String getHeaderValueImpl(String uri, String method) throws IOException | |
| getUtf8Bytes | back to summary |
|---|---|
| private static byte[] getUtf8Bytes(char[] passwd) throws CharacterCodingException | |
| isAuthorizationStale | back to summary |
|---|---|
| public boolean isAuthorizationStale(String header) Implements abstract sun. Check if the header indicates that the current auth. parameters are stale. If so, then replace the relevant field with the new value and return true. Otherwise return false. returning true means the request can be retried with the same userid/password returning false means we have to go back to the user to ask for a new username password.
| |
| log | back to summary |
|---|---|
| private static void log(String msg) | |
| processPropValue | back to summary |
|---|---|
| private static void processPropValue(String input, Set<String> theSet, BiConsumer<Set<String>, String> consumer) | |
| setAlgorithmNames | back to summary |
|---|---|
| private static void setAlgorithmNames(HeaderParser p, DigestAuthentication. | |
| setHeaders | back to summary |
|---|---|
| public void setHeaders(HttpURLConnection conn, HeaderParser p, String raw) throws IOException Implements abstract sun. Set header(s) on the given connection.
| |
| supportsPreemptiveAuthorization | back to summary |
|---|---|
| public boolean supportsPreemptiveAuthorization() Implements abstract sun.
| |
| validateDigest | back to summary |
|---|---|
| private void validateDigest(String name) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private String | |
| pack-priv int | |
| private static final int | |
| private static final int | |
| private String | |
| private int | |
| private String | |
| private String | |
| private static final Random | |
| private boolean | |
| private static final long | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv synchronized String | |
| pack-priv synchronized String | |
| pack-priv synchronized Charset | |
| pack-priv synchronized String | |
| pack-priv synchronized String | |
| pack-priv synchronized int | |
| pack-priv synchronized String | |
| pack-priv synchronized String | |
| pack-priv synchronized boolean | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized void | |
| pack-priv synchronized void |
| algorithm | back to summary |
|---|---|
| private String algorithm | |
| cachedHA1 | back to summary |
|---|---|
| private String cachedHA1 | |
| charset | back to summary |
|---|---|
| private String charset | |
| cnonce | back to summary |
|---|---|
| private String cnonce | |
| cnonce_count | back to summary |
|---|---|
| pack-priv int cnonce_count | |
| cnoncelen | back to summary |
|---|---|
| private static final int cnoncelen | |
| cnonceRepeat | back to summary |
|---|---|
| private static final int cnonceRepeat | |
| digestName | back to summary |
|---|---|
| private String digestName | |
| NCcount | back to summary |
|---|---|
| private int NCcount | |
| nonce | back to summary |
|---|---|
| private String nonce | |
| opaque | back to summary |
|---|---|
| private String opaque | |
| random | back to summary |
|---|---|
| private static final Random random | |
| redoCachedHA1 | back to summary |
|---|---|
| private boolean redoCachedHA1 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| serverQop | back to summary |
|---|---|
| private boolean serverQop | |
| userhash | back to summary |
|---|---|
| private boolean userhash | |
| Parameters | back to summary |
|---|---|
| pack-priv Parameters() | |
| authQop | back to summary |
|---|---|
| pack-priv boolean authQop() | |
| getAlgorithm | back to summary |
|---|---|
| pack-priv synchronized String getAlgorithm() | |
| getCachedHA1 | back to summary |
|---|---|
| pack-priv synchronized String getCachedHA1() | |
| getCharset | back to summary |
|---|---|
| pack-priv synchronized Charset getCharset() | |
| getCnonce | back to summary |
|---|---|
| pack-priv synchronized String getCnonce() | |
| getDigestName | back to summary |
|---|---|
| pack-priv synchronized String getDigestName() | |
| getNCCount | back to summary |
|---|---|
| pack-priv synchronized int getNCCount() | |
| getNonce | back to summary |
|---|---|
| pack-priv synchronized String getNonce() | |
| getOpaque | back to summary |
|---|---|
| pack-priv synchronized String getOpaque() | |
| getUserhash | back to summary |
|---|---|
| pack-priv synchronized boolean getUserhash() | |
| incrementNC | back to summary |
|---|---|
| pack-priv synchronized void incrementNC() | |
| setAlgorithm | back to summary |
|---|---|
| pack-priv synchronized void setAlgorithm(String s) | |
| setCachedHA1 | back to summary |
|---|---|
| pack-priv synchronized void setCachedHA1(String s) | |
| setCharset | back to summary |
|---|---|
| pack-priv synchronized void setCharset(String charset) | |
| setDigestName | back to summary |
|---|---|
| pack-priv synchronized void setDigestName(String s) | |
| setNewCnonce | back to summary |
|---|---|
| pack-priv synchronized void setNewCnonce() | |
| setNonce | back to summary |
|---|---|
| pack-priv synchronized void setNonce(String s) | |
| setOpaque | back to summary |
|---|---|
| pack-priv synchronized void setOpaque(String s) | |
| setQop | back to summary |
|---|---|
| pack-priv synchronized void setQop(String qop) | |
| setUserhash | back to summary |
|---|---|
| pack-priv synchronized void setUserhash(boolean userhash) | |