extends Provider : Provider « Security « Java Tutorial






import java.security.Provider;

public class YourOwnProvider extends Provider {
  public YourOwnProvider() {
    super("YourOwn", 1.0, "YourOwn Security Provider v1.0");
    put("KeyGenerator.XOR", "yourPackageName.XORKeyGenerator");
    put("KeyPairGenerator.YourOwn", "yourPackageName.YourOwnKeyPairGenerator");
    put("KeyFactory.YourOwn", "yourPackageName.YourOwnKeyFactory");
    put("MessageDigest.YourOwn", "yourPackageName.YourOwnMessageDigest");
    put("Signature.YourOwnwithSHA", "yourPackageName.YourOwnSignature");
    put("Cipher.XOR", "yourPackageName.XORCipher");
    put("KeyManagerFactory.YourOwn", "yourPackageName.SSLKeyManagerFactory");
    put("Alg.Alias.MessageDigest.SHA-1", "SHA");
  }

  public static final synchronized void verifyForJCE() {
    throw new SecurityException("Can't verify for JCE");
  }
}








36.34.Provider
36.34.1.Security.getProviders()
36.34.2.Listing All Available Cryptographic Services
36.34.3.Return the available implementations for a service type
36.34.4.Get cryptographic security providers
36.34.5.Get a Provider
36.34.6.List the available capabilities for ciphers, key agreement, macs, message digests, signatures and other objects in the BC provider.
36.34.7.Get Provider Info
36.34.8.extends java.security.Provider
36.34.9.extends Provider