[jboss-dev-forums] [JBoss ESB Development] - Re: ClassCastException in CertificateLoginModule

h.wolffenbuttel do-not-reply at jboss.com
Wed Oct 7 07:52:03 EDT 2009


hi,

Here is the class definition of org.jboss.security.auth.callback.ObjectCallback. I implements the interface Callback, but that interface is empty.



  |  * JBoss, Home of Professional Open Source.
  | package org.jboss.security.auth.callback;
  | 
  | import javax.security.auth.callback.Callback;
  | 
  | /** An implementation of Callback that simply obtains an Object to be used
  | as the authentication credential. Interpretation of the Object is up to
  | the LoginModules that validate the credential.
  | 
  | @author  Scott.Stark at jboss.org
  | @version $Revision: 57203 $
  | */
  | public class ObjectCallback implements Callback
  | {
  |     private transient String prompt;
  |     private transient Object credential;
  | 
  |     /** Initialize the SecurityAssociationCallback
  |     */
  |     public ObjectCallback(String prompt)
  |     {
  |         this.prompt = prompt;
  |     }
  | 
  |     public String getPrompt()
  |     {
  |         return prompt;
  |     }
  |     public Object getCredential()
  |     {
  |         return credential;
  |     }
  |     public void setCredential(Object credential)
  |     {
  |         this.credential = credential;
  |     }
  |     public void clearCredential()
  |     {
  |         this.credential = null;
  |     }
  | }
  | 

Regards,

Hans


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259131#4259131

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4259131



More information about the jboss-dev-forums mailing list