Esri Geoportal Server
1.0

com.esri.gpt.framework.security.codec
Class Digest

java.lang.Object
  extended by com.esri.gpt.framework.security.codec.Digest

public class Digest
extends Object

Digest authenticator.


Method Summary
static Digest extractFrom(HttpURLConnection connection)
          Extracts digest from the connection.
 void injectTo(HttpURLConnection connection, UsernamePasswordCredentials credentials)
          Injects digest response into connection.
 boolean isValid()
          Checks if digest has been found and extracted from the connection.
 String toString()
          Creates string reprezentation of the digest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isValid

public boolean isValid()
Checks if digest has been found and extracted from the connection.

Returns:
true if digest digest has been extracted from the connection

extractFrom

public static Digest extractFrom(HttpURLConnection connection)
Extracts digest from the connection. If digest has been successfuly extracted, returned digest will have valid flag set to true.

Parameters:
connection - HTTP connection
Returns:
digest

injectTo

public void injectTo(HttpURLConnection connection,
                     UsernamePasswordCredentials credentials)
Injects digest response into connection.

Parameters:
connection - HTTP connection
credentials - credentials to embede within digest request

toString

public String toString()
Creates string reprezentation of the digest.

Overrides:
toString in class Object
Returns:
string reprezentation of the digest

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.