All JCE/JCA Samples
Login
(On-Premise & DevProgram)
Filename | Description |
---|---|
UserSecret.java | Sample for user secret. |
UserSecretSample.java | Sample for user secret. |
Proxy and Provider Services (CloudHSM)
Filename | Description |
---|---|
ProxyConfigFileSample.java | Sample for proxy configuration from a file. |
ProxyConfigSample.java | Sample for proxy configuration. |
ProxySample.java | Sample for using a proxy. |
ProviderServicesSample.java | Sample for provider services. |
Cryptographic Operations Samples
AES Encryption and GCM
Filename | Description |
---|---|
AesGcmSample.java | Sample for AES-GCM encryption. |
AesGcmSampleWithVariableTagLengths.java | Sample for AES-GCM with variable tag lengths. |
AesGcmTagSplitSample.java | Sample for splitting AES-GCM tags. |
AesGcmTagSplitSample2.java | Another sample for splitting AES-GCM tags. |
AesLocalPerfSample.java | Sample for local AES performance. |
RSA (Rivest–Shamir–Adleman)
Filename | Description |
---|---|
RsaPssSample.java | Sample for RSA-PSS. |
RsaSample.java | Sample for generic RSA operations. |
RsaSampleExternal.java | Sample for external RSA operations. |
RsaSampleInternal.java | Sample for internal RSA operations. |
EC (Elliptic Curve)
Filename | Description |
---|---|
BIP32_HD_Sample.java | Sample for BIP32 hierarchical deterministic keys. |
EcCkdDsaSample.java | Sample for ECCKD DSA. |
EcCustomDsaSample.java | Sample for custom ECDSA. |
EcDhSample.java | Sample for elliptic curve Diffie-Hellman. |
EcDsaParallel2Sample.java | Sample for parallel ECDSA. |
EcDsaParallelSample.java | Sample for parallel ECDSA. |
EcDsaSample.java | Sample for ECDSA operations. |
EcUnwrapSample.java | Sample for EC unwrap. |
EcWrapSample.java | Sample for EC wrap. |
ED (EdDSA)
Filename | Description |
---|---|
EdCkdDsaSample.java | Sample for EDCKD DSA. |
EdCkdSkaDsaSample.java | Sample for EDCKD SKA DSA. |
EdDhSample.java | Sample for EdDSA Diffie-Hellman. |
EdDsaSample.java | Sample for EdDSA operations. |
EdExportSample.java | Sample for exporting EdDSA keys. |
EdSha3DsaSample.java | Sample for EdDSA with SHA3 DSA. |
EdWrapExportSample.java | Sample for exporting wrapped EdDSA keys. |
EdWrapSample.java | Sample for wrapped EdDSA keys. |
EdWrapSample2.java | Another sample for wrapped EdDSA keys. |
EdWrapSample3.java | Yet another sample for wrapped EdDSA keys. |
DH (Diffie-Hellman)
Filename | Description |
---|---|
DhSample.java | Sample for Diffie-Hellman key exchange. |
DSA
Filename | Description |
---|---|
DsaSample.java | Sample for DSA operations. |
HSM Key Management
KeyStore and Enumeration
Filename | Description |
---|---|
GenerateDirectSample.java | Sample for direct key generation. |
GenerateWithRenameSample.java | Sample for key generation with renaming. |
KeyStoreEnumerationSample.java | Sample for KeyStore aliases enumeration. |
KeyStoreEnumerationSample2.java | Another sample for KeyStore aliases enumeration. |
KeyToolXSample.java | Sample for KeyToolX utility. |
ExternalKeySample.java | External keystore sample |
ExternalKeySample2.java | External keystore sample |
Key Attributes and Export
Filename | Description |
---|---|
KeyAttributesSample.java | Sample for key attributes. |
KeyAttributesSingleSample.java | Sample for single key attributes. |
KeyExportEcCkdSample.java | Sample for EC CKD key export. |
KeyExportEcSample.java | Sample for EC key export. |
KeyExportEdSample.java | Sample for EdDSA key export. |
KeyExportRsaSample.java | Sample for RSA key export. |
KeyFlagsSample.java | Sample for key flags. |
Attestation
Filename | Description |
---|---|
AttestationSample.java | Sample for key attestation. |
AttestationSampleAes.java | Sample for attestation with AES. |
AttestationSampleEc.java | Sample for attestation with EC. |
AttestationSampleEcCkdSka.java | Sample for attestation with EC CKD SKA. |
AttestationSampleEcId.java | Sample for attestation with EC ID. |
AttestationSampleEcSka.java | Sample for attestation with EC SKA. |
Key Password and Signature
Filename | Description |
---|---|
KeyPasswordSample.java | Sample for key password. |
KeySignatureAndVerificationSample.java | Sample for key signature and verification. |
Secure Key Exchange and Wrapping
Filename | Description |
---|---|
RsaDoubleWrapSample.java | Sample for double wrapping RSA. |
RsaSampleWrap.java | Sample for wrapping RSA. |
RsaSampleWrapAtomic.java | Sample for atomic RSA wrapping. |
Smart Key Attributes
Authorization and Certificates
Filename | Description |
---|---|
AuthorizationBlsSample.java | Sample for Bls authorization. |
AuthorizationCertificatesMixedSample.java | Sample for mixed certificate authorization. |
AuthorizationCertificatesSample.java | Sample for certificate authorization. |
AuthorizationDsaSample.java | Sample for DSA authorization. |
AuthorizationEcCkdDerivedSignSample.java | Sample for EC CKD derived signature authorization. |
AuthorizationEdSample.java | Sample for EdDSA authorization. |
AuthorizationEmptyTokenEcCkdDerivedSignSample.java | Sample for EC CKD derived signature with an empty token. |
AuthorizationEmptyTokenSample.java | Sample for authorization with an empty token. |
AuthorizationIllustrateTokenAssemblySample.java | Sample for illustrating token assembly in authorization. |
AuthorizationMultiGroupSample.java | Sample for multi-group authorization. |
AuthorizationMultiTokenSample.java | Sample for multi-token authorization. |
AuthorizationNoTimestampSample.java | Sample for authorization without timestamp. |
AuthorizationNoTokenSample.java | Sample for authorization without token. |
AuthorizationRsaAndEcSample.java | Sample for RSA and EC authorization. |
AuthorizationRsaDecryptSample.java | Sample for RSA decryption authorization. |
AuthorizationRsaSample.java | Sample for RSA authorization. |
AuthorizationSample.java | Sample for generic authorization. |
AuthorizationSampleCurveWithBC.java | Sample for authorization with specific curves using BC provider. |
AuthorizationSampleDifferentCurves.java | Sample for authorization with different curves. |
AuthorizationSampleMultiple.java | Sample for multiple authorizations. |
AuthorizationSerializationSample.java | Sample for authorization serialization. |
AuthorizationBlsSample.java | Sample for authorization with BLS. |
AuthorizationCertificatesMixedSample.java | Sample for authorization with mixed certificates. |
AuthorizationCertificatesSample.java | Sample for authorization with certificates. |
AuthorizationDsaSample.java | Sample for authorization with DSA. |
AuthorizationEcCkdDerivedSignSample.java | Sample for authorization with ECCKD-derived signatures. |
AuthorizationEdSample.java | Sample for authorization with EdDSA. |
AuthorizationEmptyTokenEcCkdDerivedSignSample.java | Sample for authorization with empty token and ECCKD-derived signatures. |
AuthorizationEmptyTokenSample.java | Sample for authorization with empty token. |
AuthorizationIllustrateTokenAssemblySample.java | Sample illustrating token assembly for authorization. |
AuthorizationMultiGroupSample.java | Sample for authorization with multiple groups. |
AuthorizationMultiTokenSample.java | Sample for authorization with multiple tokens. |
AuthorizationNoTimestampSample.java | Sample for authorization without timestamp. |
AuthorizationNoTokenSample.java | Sample for authorization without token. |
AuthorizationRsaAndEcSample.java | Sample for authorization with RSA and EC. |
AuthorizationRsaDecryptSample.java | Sample for RSA decryption in authorization. |
AuthorizationRsaSample.java | Sample for authorization with RSA. |
AuthorizationSample.java | Sample for generic authorization. |
AuthorizationSampleCurveWithBC.java | Sample for authorization with a curve using BC provider. |
AuthorizationSampleDifferentCurves.java | Sample for authorization with different curves. |
AuthorizationSampleMultiple.java | Sample for multiple authorizations. |
AuthorizationSerializationSample.java | Sample for serialized authorization. |
AuthorizedUnwrapSample.java | Sample for authorized key unwrapping. |
AuthorizedUnwrapSampleExt.java | Extended sample for authorized key unwrapping. |
Approval
Filename | Description |
---|---|
ApprovalBlockSample.java | Sample for approval block. |
ApprovalImportSample.java | Sample for approval import. |
ApprovalModifyCkdSample.java | Sample for modifying approval with CKD. |
ApprovalModifyCkdSample2.java | Another sample for modifying approval with CKD. |
ApprovalModifySample.java | Sample for modifying approval. |
ApprovalModifySampleExternal.java | Sample for modifying approval externally. |
ApprovalModifyWithTimestampSample.java | Sample for modifying approval with a timestamp. |
ApprovalSignatureSample.java | Sample for approval signature. |
ApprovalTimelockSample.java | Sample for approval timelock. |
ApprovalTimelockSample2.java | Another sample for approval timelock. |
Cryptocurrency
Filename | Description |
---|---|
FullCryptocurrencySample.java | Sample for full cryptocurrency operations. |
EcCkdAddrSample.java | Sample for ECCKD address generation. |
Certificate
Filename | Description |
---|---|
CertExtSample.java | Sample for certificate extension. |
CertImpSample.java | Sample for certificate import. |
CertSample.java | Sample for generic certificate operations. |
Miscellaneous
Filename | Description |
---|---|
PrimusHelper.java | Helper class for setting up Primus HSM. |
PrimusSkaHelper.java | Sample for Primus SKA helper functions. |
LogFetchSample.java | Sample for fetching logs. |
IesKeysHsmSample.java | Sample for IES keys in HSM. |
IesKeysSample.java | Sample for IES keys. |
IesSample.java | Sample for IES. |
IesUpdateSample.java | Sample for updating IES. |
IesXmlAsyncStreamSample.java | Sample for asynchronous IES XML stream. |
IesXmlAsyncStreamSample2.java | Another sample for asynchronous IES XML stream. |
IesXmlPerfSample.java | Sample for IES XML performance. |
IesXmlSample.java | Sample for IES XML. |
IesXmlStreamSample.java | Sample for IES XML stream. |
SecureRandomBulkKeySample.java | Sample for secure random bulk key generation. |
SecureRandomSample.java | Sample for secure random generation. |
GetAlgorithmsSample.java | Sample for getting algorithms. |
TlsSample.java | Sample for establishing secure TLS (Transport Layer Security) |
TlsInteropSample.java | Sample for establishing secure TLS (Transport Layer Security) |
TlsInteropBcSample.java | Sample for establishing secure TLS (Transport Layer Security) |