boolean isSupported = false;
if (callback instanceof CertStoreCallback ||
callback instanceof PasswordValidationCallback ||
callback instanceof CallerPrincipalCallback ||
callback instanceof GroupPrincipalCallback ||
callback instanceof SecretKeyCallback ||
callback instanceof PrivateKeyCallback ||
callback instanceof TrustStoreCallback) {
isSupported = true;
}
return isSupported;