APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.security.ssl

pack-priv final Class JsseJce

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.security.*, java.security.interfaces.RSAPublicKey, java.security.spec.*, javax.crypto.*

This class contains a few static methods for interaction with the JCA/JCE to obtain implementations, etc.
Author
Andreas Sterbenz

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
pack-priv static final String
CIPHER_3DES

JCE transformation string for (3-key) Triple DES in CBC mode without padding.

pack-priv static final String
CIPHER_AES

JCE transformation string for AES in CBC mode without padding.

pack-priv static final String
CIPHER_AES_GCM

JCE transformation string for AES in GCM mode without padding.

pack-priv static final String
CIPHER_CHACHA20_POLY1305

JCE transformation string for ChaCha20-Poly1305

pack-priv static final String
CIPHER_DES

JCE transformation string for DES in CBC mode without padding.

pack-priv static final String
CIPHER_RC4

JCE transformation string for the stream cipher RC4.

pack-priv static final String
CIPHER_RSA_PKCS1

JCE transformation string for RSA with PKCS#1 v1.5 padding.

pack-priv static final String
SIGNATURE_DSA

JCA identifier string for DSA, i.e. a DSA with SHA-1.

pack-priv static final String
SIGNATURE_ECDSA

JCA identifier string for ECDSA, i.e. a ECDSA with SHA-1.

pack-priv static final String
SIGNATURE_EDDSA

JCA identifier for EdDSA signatures.

pack-priv static final String
SIGNATURE_RAWDSA

JCA identifier string for Raw DSA, i.e. a DSA signature without hashing where the application provides the SHA-1 hash of the data.

pack-priv static final String
SIGNATURE_RAWECDSA

JCA identifier string for Raw ECDSA, i.e. a DSA signature without hashing where the application provides the SHA-1 hash of the data.

pack-priv static final String
SIGNATURE_RAWRSA

JCA identifier string for Raw RSA, i.e. an RSA PKCS#1 v1.5 signature without hashing where the application provides the hash of the data.

pack-priv static final String
SIGNATURE_SSLRSA

JCA identifier string for the SSL/TLS style RSA Signature.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
pack-priv static RSAPublicKeySpec
pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALLOW_ECCback to summary
pack-priv static final boolean ALLOW_ECC
CIPHER_3DESback to summary
pack-priv static final String CIPHER_3DES

JCE transformation string for (3-key) Triple DES in CBC mode without padding.

CIPHER_AESback to summary
pack-priv static final String CIPHER_AES

JCE transformation string for AES in CBC mode without padding.

CIPHER_AES_GCMback to summary
pack-priv static final String CIPHER_AES_GCM

JCE transformation string for AES in GCM mode without padding.

CIPHER_CHACHA20_POLY1305back to summary
pack-priv static final String CIPHER_CHACHA20_POLY1305

JCE transformation string for ChaCha20-Poly1305

CIPHER_DESback to summary
pack-priv static final String CIPHER_DES

JCE transformation string for DES in CBC mode without padding.

CIPHER_RC4back to summary
pack-priv static final String CIPHER_RC4

JCE transformation string for the stream cipher RC4.

CIPHER_RSA_PKCS1back to summary
pack-priv static final String CIPHER_RSA_PKCS1

JCE transformation string for RSA with PKCS#1 v1.5 padding. Can be used for encryption, decryption, signing, verifying.

SIGNATURE_DSAback to summary
pack-priv static final String SIGNATURE_DSA

JCA identifier string for DSA, i.e. a DSA with SHA-1.

SIGNATURE_ECDSAback to summary
pack-priv static final String SIGNATURE_ECDSA

JCA identifier string for ECDSA, i.e. a ECDSA with SHA-1.

SIGNATURE_EDDSAback to summary
pack-priv static final String SIGNATURE_EDDSA

JCA identifier for EdDSA signatures.

SIGNATURE_RAWDSAback to summary
pack-priv static final String SIGNATURE_RAWDSA

JCA identifier string for Raw DSA, i.e. a DSA signature without hashing where the application provides the SHA-1 hash of the data. Note that the standard name is "NONEwithDSA" but we use "RawDSA" for compatibility.

SIGNATURE_RAWECDSAback to summary
pack-priv static final String SIGNATURE_RAWECDSA

JCA identifier string for Raw ECDSA, i.e. a DSA signature without hashing where the application provides the SHA-1 hash of the data.

SIGNATURE_RAWRSAback to summary
pack-priv static final String SIGNATURE_RAWRSA

JCA identifier string for Raw RSA, i.e. an RSA PKCS#1 v1.5 signature without hashing where the application provides the hash of the data. Used for RSA client authentication with a 36 byte hash.

SIGNATURE_SSLRSAback to summary
pack-priv static final String SIGNATURE_SSLRSA

JCA identifier string for the SSL/TLS style RSA Signature. I.e. a signature using RSA with PKCS#1 v1.5 padding signing a concatenation of an MD5 and SHA-1 digest.

Constructor Detail

JsseJceback to summary
private JsseJce()

Method Detail

getRSAKeyLengthback to summary
pack-priv static int getRSAKeyLength(PublicKey key)
getRSAPublicKeySpecback to summary
pack-priv static RSAPublicKeySpec getRSAPublicKeySpec(PublicKey key)
isEcAvailableback to summary
pack-priv static boolean isEcAvailable()
sun.security.ssl back to summary

private Class JsseJce.EcAvailability

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isAvailableback to summary
private static final boolean isAvailable

Constructor Detail

EcAvailabilityback to summary
private EcAvailability()