org.apache.activemq.jaas
Class JaasCertificateCallbackHandler

java.lang.Object
  extended by org.apache.activemq.jaas.JaasCertificateCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class JaasCertificateCallbackHandler
extends Object
implements CallbackHandler

A Standard JAAS callback handler for SSL certificate requests. Will only handle callbacks of type CertificateCallback.

Author:
sepandm@gmail.com (Sepand)

Constructor Summary
JaasCertificateCallbackHandler(X509Certificate[] certs)
          Basic constructor.
 
Method Summary
 void handle(Callback[] callbacks)
          Overriding handle method to handle certificates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasCertificateCallbackHandler

public JaasCertificateCallbackHandler(X509Certificate[] certs)
Basic constructor.

Parameters:
certs - The certificate returned when calling back.
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Overriding handle method to handle certificates.

Specified by:
handle in interface CallbackHandler
Parameters:
callbacks - The callbacks requested.
Throws:
IOException
UnsupportedCallbackException - Thrown if an unkown Callback type is encountered.


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.