APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.crypto.provider

public final Class SunJCE

extends Provider
Class Inheritance
Imports
java.security.Provider, .SecureRandom, java.util.HashMap, .List

Defines the "SunJCE" provider. Supported algorithms and their names: - RSA encryption (PKCS#1 v1.5 and raw) - DES - DES-EDE - AES - Blowfish - RC2 - ARCFOUR (RC4 compatible) - ChaCha20 (Stream cipher only and in AEAD mode with Poly1305) - Cipher modes ECB, CBC, CFB, OFB, PCBC, CTR, and CTS for all block ciphers and mode GCM for AES cipher - Cipher padding ISO10126Padding for non-PKCS#5 block ciphers and NoPadding and PKCS5Padding for all block ciphers - Password-based Encryption (PBE) - Diffie-Hellman Key Agreement - HMAC-MD5, HMAC-SHA1, HMAC with SHA2 family and SHA3 family of digests - JCEKS KeyStore - DHKEM - ML-KEM - HKDF-SHA256, HKDF-SHA384, and HKDF-SHA512

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean
private static final String
private static volatile SunJCE
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static SunJCE
pack-priv static SecureRandom
private void
ps(String type, String algo, String cn)

private void
ps(String type, String algo, String cn, List<String> als, HashMap<String, String> attrs)

private void
psA(String type, String algo, String cn, HashMap<String, String> attrs)

pack-priv void
Inherited from java.security.Provider:
clearcomputecomputeIfAbsentcomputeIfPresentconfigureelementsentrySetforEachgetgetInfogetNamegetOrDefaultgetPropertygetServicegetServicesgetVersiongetVersionStrisConfiguredkeyskeySetloadmergeputputAllputIfAbsentputServiceremoveremoveremoveServicereplacereplacereplaceAlltoStringvalues

Field Detail

debugback to summary
pack-priv static final boolean debug

Hides java.security.Provider.debug.

infoback to summary
private static final String info

Hides java.security.Provider.info.

instanceback to summary
private static volatile SunJCE instance
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.Provider.serialVersionUID.

Annotations
@Serial

Constructor Detail

SunJCEback to summary
public SunJCE()

Method Detail

getInstanceback to summary
pack-priv static SunJCE getInstance()
getRandomback to summary
pack-priv static SecureRandom getRandom()
psback to summary
private void ps(String type, String algo, String cn)
psback to summary
private void ps(String type, String algo, String cn, List<String> als, HashMap<String, String> attrs)
psAback to summary
private void psA(String type, String algo, String cn, HashMap<String, String> attrs)
putEntriesback to summary
pack-priv void putEntries()
com.sun.crypto.provider back to summary

private Class SunJCE.SecureRandomHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final SecureRandom

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

RANDOMback to summary
pack-priv static final SecureRandom RANDOM

Constructor Detail

SecureRandomHolderback to summary
private SecureRandomHolder()