ice.net
Class AuthenticationManager

java.lang.Object
  extended byice.net.AuthenticationManager
All Implemented Interfaces:
ice.authentication.AuthenticationListener, EventListener

public class AuthenticationManager
extends Object
implements ice.authentication.AuthenticationListener

This class provide support for basic (unsecure) and digest authentication. See rfc 1945.

See Also:
Authentication, AuthenticationListener, AuthenticationEvent

Constructor Summary
AuthenticationManager()
           
 
Method Summary
 void acknowledgeAuthentication(Authentication authentication)
           
 void addAuthenticationListener(AuthenticationListener listener)
           
 Authentication applyAuthentication(URL url)
           
 Authentication applyAuthentication(URL url, URLConnection urlConnection)
          Deprecated. As of 1.5.3, replaced by applyAuthentication(URL).
 Enumeration elements()
           
 Authentication extractAuthentication(URL url, URLConnection urlConnection)
           
 Authentication extractAuthentication(URL url, URLConnection urlConnection, HeaderMap.Header authenticateHeader)
           
 Authentication extractAuthentication(URL url, URLConnection urlConnection, HeaderMap.Header[] authenticateHeaders)
           
 Authentication extractAuthentication(URL url, URLConnection urlConnection, String authenticateFieldValue)
          Deprecated. As of 1.6.0, replaced by extractAuthentication(URL, URLConnection, HeaderMap.Header).
 Authentication[] getAllAuthentications()
           
 Authentication getAuthentication(String realm)
           
 void onAuthenticationEvent(ice.authentication.AuthenticationEvent event)
           
 void readAuthentications(ObjectInput objectInput)
           
 void removeAllAuthenticationListeners()
           
 void removeAllAuthentications()
           
 void removeAuthentication(Authentication authentication)
           
 void removeAuthentication(String realm)
           
 void removeAuthenticationListener(AuthenticationListener listener)
           
 void removeBadAuthentication(Authentication authentication)
           
 void setAuthentication(Authentication authentication)
           
 void writeAuthentications(ObjectOutput objectOutput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationManager

public AuthenticationManager()
Method Detail

acknowledgeAuthentication

public void acknowledgeAuthentication(Authentication authentication)

addAuthenticationListener

public void addAuthenticationListener(AuthenticationListener listener)

applyAuthentication

public Authentication applyAuthentication(URL url)

applyAuthentication

public Authentication applyAuthentication(URL url,
                                          URLConnection urlConnection)
Deprecated. As of 1.5.3, replaced by applyAuthentication(URL).


elements

public Enumeration elements()

extractAuthentication

public Authentication extractAuthentication(URL url,
                                            URLConnection urlConnection)

extractAuthentication

public Authentication extractAuthentication(URL url,
                                            URLConnection urlConnection,
                                            String authenticateFieldValue)
Deprecated. As of 1.6.0, replaced by extractAuthentication(URL, URLConnection, HeaderMap.Header).


extractAuthentication

public Authentication extractAuthentication(URL url,
                                            URLConnection urlConnection,
                                            HeaderMap.Header authenticateHeader)

extractAuthentication

public Authentication extractAuthentication(URL url,
                                            URLConnection urlConnection,
                                            HeaderMap.Header[] authenticateHeaders)

getAllAuthentications

public Authentication[] getAllAuthentications()

getAuthentication

public Authentication getAuthentication(String realm)

onAuthenticationEvent

public void onAuthenticationEvent(ice.authentication.AuthenticationEvent event)
Specified by:
onAuthenticationEvent in interface ice.authentication.AuthenticationListener

readAuthentications

public void readAuthentications(ObjectInput objectInput)

removeAllAuthenticationListeners

public void removeAllAuthenticationListeners()

removeAllAuthentications

public void removeAllAuthentications()

removeAuthentication

public void removeAuthentication(Authentication authentication)

removeAuthentication

public void removeAuthentication(String realm)

removeAuthenticationListener

public void removeAuthenticationListener(AuthenticationListener listener)

removeBadAuthentication

public void removeBadAuthentication(Authentication authentication)

setAuthentication

public void setAuthentication(Authentication authentication)

writeAuthentications

public void writeAuthentications(ObjectOutput objectOutput)