org.apache.activemq.jaas
Class JaasCertificateCallbackHandler

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

public class JaasCertificateCallbackHandler
extends java.lang.Object
implements javax.security.auth.callback.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(java.security.cert.X509Certificate[] certs)
          Basic constructor.
 
Method Summary
 void handle(javax.security.auth.callback.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(java.security.cert.X509Certificate[] certs)
Basic constructor.

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

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Overriding handle method to handle certificates.

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


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.