org.openanzo.server.security
Class CredentialCallback

java.lang.Object
  extended by org.openanzo.server.security.CredentialCallback
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler

public class CredentialCallback
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler

Credential callback handler that handles authentication a username and password

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
CredentialCallback(java.lang.String userId, java.lang.String password)
          Create a new CredentialCallback
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialCallback

public CredentialCallback(java.lang.String userId,
                          java.lang.String password)
Create a new CredentialCallback

Parameters:
userId - userid to check
password - password to check
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.