Package org.apache.activemq.jaas
Class JaasCertificateCallbackHandler
- java.lang.Object
-
- 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
Constructors Constructor Description JaasCertificateCallbackHandler(X509Certificate[] certs)Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(Callback[] callbacks)Overriding handle method to handle certificates.
-
-
-
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:
handlein interfaceCallbackHandler- Parameters:
callbacks- The callbacks requested.- Throws:
IOExceptionUnsupportedCallbackException- Thrown if an unkown Callback type is encountered.
-
-