Skip to main content

All JCE/JCA Samples

Login

(On-Premise & DevProgram)

FilenameDescription
UserSecret.javaSample for user secret.
UserSecretSample.javaSample for user secret.

Proxy and Provider Services (CloudHSM)

FilenameDescription
ProxyConfigFileSample.javaSample for proxy configuration from a file.
ProxyConfigSample.javaSample for proxy configuration.
ProxySample.javaSample for using a proxy.
ProviderServicesSample.javaSample for provider services.

Cryptographic Operations Samples

AES Encryption and GCM

FilenameDescription
AesGcmSample.javaSample for AES-GCM encryption.
AesGcmSampleWithVariableTagLengths.javaSample for AES-GCM with variable tag lengths.
AesGcmTagSplitSample.javaSample for splitting AES-GCM tags.
AesGcmTagSplitSample2.javaAnother sample for splitting AES-GCM tags.
AesLocalPerfSample.javaSample for local AES performance.

RSA (Rivest–Shamir–Adleman)

FilenameDescription
RsaPssSample.javaSample for RSA-PSS.
RsaSample.javaSample for generic RSA operations.
RsaSampleExternal.javaSample for external RSA operations.
RsaSampleInternal.javaSample for internal RSA operations.

EC (Elliptic Curve)

FilenameDescription
BIP32_HD_Sample.javaSample for BIP32 hierarchical deterministic keys.
EcCkdDsaSample.javaSample for ECCKD DSA.
EcCustomDsaSample.javaSample for custom ECDSA.
EcDhSample.javaSample for elliptic curve Diffie-Hellman.
EcDsaParallel2Sample.javaSample for parallel ECDSA.
EcDsaParallelSample.javaSample for parallel ECDSA.
EcDsaSample.javaSample for ECDSA operations.
EcUnwrapSample.javaSample for EC unwrap.
EcWrapSample.javaSample for EC wrap.

ED (EdDSA)

FilenameDescription
EdCkdDsaSample.javaSample for EDCKD DSA.
EdCkdSkaDsaSample.javaSample for EDCKD SKA DSA.
EdDhSample.javaSample for EdDSA Diffie-Hellman.
EdDsaSample.javaSample for EdDSA operations.
EdExportSample.javaSample for exporting EdDSA keys.
EdSha3DsaSample.javaSample for EdDSA with SHA3 DSA.
EdWrapExportSample.javaSample for exporting wrapped EdDSA keys.
EdWrapSample.javaSample for wrapped EdDSA keys.
EdWrapSample2.javaAnother sample for wrapped EdDSA keys.
EdWrapSample3.javaYet another sample for wrapped EdDSA keys.

DH (Diffie-Hellman)

FilenameDescription
DhSample.javaSample for Diffie-Hellman key exchange.

DSA

FilenameDescription
DsaSample.javaSample for DSA operations.

HSM Key Management

KeyStore and Enumeration

FilenameDescription
GenerateDirectSample.javaSample for direct key generation.
GenerateWithRenameSample.javaSample for key generation with renaming.
KeyStoreEnumerationSample.javaSample for KeyStore aliases enumeration.
KeyStoreEnumerationSample2.javaAnother sample for KeyStore aliases enumeration.
KeyToolXSample.javaSample for KeyToolX utility.
ExternalKeySample.javaExternal keystore sample
ExternalKeySample2.javaExternal keystore sample

Key Attributes and Export

FilenameDescription
KeyAttributesSample.javaSample for key attributes.
KeyAttributesSingleSample.javaSample for single key attributes.
KeyExportEcCkdSample.javaSample for EC CKD key export.
KeyExportEcSample.javaSample for EC key export.
KeyExportEdSample.javaSample for EdDSA key export.
KeyExportRsaSample.javaSample for RSA key export.
KeyFlagsSample.javaSample for key flags.

Attestation

FilenameDescription
AttestationSample.javaSample for key attestation.
AttestationSampleAes.javaSample for attestation with AES.
AttestationSampleEc.javaSample for attestation with EC.
AttestationSampleEcCkdSka.javaSample for attestation with EC CKD SKA.
AttestationSampleEcId.javaSample for attestation with EC ID.
AttestationSampleEcSka.javaSample for attestation with EC SKA.

Key Password and Signature

FilenameDescription
KeyPasswordSample.javaSample for key password.
KeySignatureAndVerificationSample.javaSample for key signature and verification.

Secure Key Exchange and Wrapping

FilenameDescription
RsaDoubleWrapSample.javaSample for double wrapping RSA.
RsaSampleWrap.javaSample for wrapping RSA.
RsaSampleWrapAtomic.javaSample for atomic RSA wrapping.

Smart Key Attributes

Authorization and Certificates

FilenameDescription
AuthorizationBlsSample.javaSample for Bls authorization.
AuthorizationCertificatesMixedSample.javaSample for mixed certificate authorization.
AuthorizationCertificatesSample.javaSample for certificate authorization.
AuthorizationDsaSample.javaSample for DSA authorization.
AuthorizationEcCkdDerivedSignSample.javaSample for EC CKD derived signature authorization.
AuthorizationEdSample.javaSample for EdDSA authorization.
AuthorizationEmptyTokenEcCkdDerivedSignSample.javaSample for EC CKD derived signature with an empty token.
AuthorizationEmptyTokenSample.javaSample for authorization with an empty token.
AuthorizationIllustrateTokenAssemblySample.javaSample for illustrating token assembly in authorization.
AuthorizationMultiGroupSample.javaSample for multi-group authorization.
AuthorizationMultiTokenSample.javaSample for multi-token authorization.
AuthorizationNoTimestampSample.javaSample for authorization without timestamp.
AuthorizationNoTokenSample.javaSample for authorization without token.
AuthorizationRsaAndEcSample.javaSample for RSA and EC authorization.
AuthorizationRsaDecryptSample.javaSample for RSA decryption authorization.
AuthorizationRsaSample.javaSample for RSA authorization.
AuthorizationSample.javaSample for generic authorization.
AuthorizationSampleCurveWithBC.javaSample for authorization with specific curves using BC provider.
AuthorizationSampleDifferentCurves.javaSample for authorization with different curves.
AuthorizationSampleMultiple.javaSample for multiple authorizations.
AuthorizationSerializationSample.javaSample for authorization serialization.
AuthorizationBlsSample.javaSample for authorization with BLS.
AuthorizationCertificatesMixedSample.javaSample for authorization with mixed certificates.
AuthorizationCertificatesSample.javaSample for authorization with certificates.
AuthorizationDsaSample.javaSample for authorization with DSA.
AuthorizationEcCkdDerivedSignSample.javaSample for authorization with ECCKD-derived signatures.
AuthorizationEdSample.javaSample for authorization with EdDSA.
AuthorizationEmptyTokenEcCkdDerivedSignSample.javaSample for authorization with empty token and ECCKD-derived signatures.
AuthorizationEmptyTokenSample.javaSample for authorization with empty token.
AuthorizationIllustrateTokenAssemblySample.javaSample illustrating token assembly for authorization.
AuthorizationMultiGroupSample.javaSample for authorization with multiple groups.
AuthorizationMultiTokenSample.javaSample for authorization with multiple tokens.
AuthorizationNoTimestampSample.javaSample for authorization without timestamp.
AuthorizationNoTokenSample.javaSample for authorization without token.
AuthorizationRsaAndEcSample.javaSample for authorization with RSA and EC.
AuthorizationRsaDecryptSample.javaSample for RSA decryption in authorization.
AuthorizationRsaSample.javaSample for authorization with RSA.
AuthorizationSample.javaSample for generic authorization.
AuthorizationSampleCurveWithBC.javaSample for authorization with a curve using BC provider.
AuthorizationSampleDifferentCurves.javaSample for authorization with different curves.
AuthorizationSampleMultiple.javaSample for multiple authorizations.
AuthorizationSerializationSample.javaSample for serialized authorization.
AuthorizedUnwrapSample.javaSample for authorized key unwrapping.
AuthorizedUnwrapSampleExt.javaExtended sample for authorized key unwrapping.

Approval

FilenameDescription
ApprovalBlockSample.javaSample for approval block.
ApprovalImportSample.javaSample for approval import.
ApprovalModifyCkdSample.javaSample for modifying approval with CKD.
ApprovalModifyCkdSample2.javaAnother sample for modifying approval with CKD.
ApprovalModifySample.javaSample for modifying approval.
ApprovalModifySampleExternal.javaSample for modifying approval externally.
ApprovalModifyWithTimestampSample.javaSample for modifying approval with a timestamp.
ApprovalSignatureSample.javaSample for approval signature.
ApprovalTimelockSample.javaSample for approval timelock.
ApprovalTimelockSample2.javaAnother sample for approval timelock.

Cryptocurrency

FilenameDescription
FullCryptocurrencySample.javaSample for full cryptocurrency operations.
EcCkdAddrSample.javaSample for ECCKD address generation.

Certificate

FilenameDescription
CertExtSample.javaSample for certificate extension.
CertImpSample.javaSample for certificate import.
CertSample.javaSample for generic certificate operations.

Miscellaneous

FilenameDescription
PrimusHelper.javaHelper class for setting up Primus HSM.
PrimusSkaHelper.javaSample for Primus SKA helper functions.
LogFetchSample.javaSample for fetching logs.
IesKeysHsmSample.javaSample for IES keys in HSM.
IesKeysSample.javaSample for IES keys.
IesSample.javaSample for IES.
IesUpdateSample.javaSample for updating IES.
IesXmlAsyncStreamSample.javaSample for asynchronous IES XML stream.
IesXmlAsyncStreamSample2.javaAnother sample for asynchronous IES XML stream.
IesXmlPerfSample.javaSample for IES XML performance.
IesXmlSample.javaSample for IES XML.
IesXmlStreamSample.javaSample for IES XML stream.
SecureRandomBulkKeySample.javaSample for secure random bulk key generation.
SecureRandomSample.javaSample for secure random generation.
GetAlgorithmsSample.javaSample for getting algorithms.
TlsSample.javaSample for establishing secure TLS (Transport Layer Security)
TlsInteropSample.javaSample for establishing secure TLS (Transport Layer Security)
TlsInteropBcSample.javaSample for establishing secure TLS (Transport Layer Security)