Uses of Class
co.ankatech.ankasecure.sdk.exception.AnkaSecureSdkException
Packages that use AnkaSecureSdkException
Package
Description
-
Uses of AnkaSecureSdkException in co.ankatech.ankasecure.sdk
Methods in co.ankatech.ankasecure.sdk that throw AnkaSecureSdkExceptionModifier and TypeMethodDescriptionco.ankatech.secure.client.model.Pkcs7AnalysisResponseAuthenticatedSdk.analyzePkcs7(co.ankatech.secure.client.model.Pkcs7AnalysisRequest request) Analyzes a PKCS#7 file to extract metadata and certificate information.co.ankatech.secure.client.model.Pkcs7AnalysisResponseAuthenticatedSdk.analyzePkcs7Stream(co.ankatech.secure.client.model.Pkcs7AnalysisStreamRequest metadata, File file) Analyzes a PKCS#7 file using streaming to avoid loading the entire file into memory.AnkaSecureSdk.authenticateApplication(String clientId, SecretChars clientSecret) Authenticates as an application and returns an authenticated SDK instance.AnkaSecureSdk.authenticateUser(String username, SecretChars password, String tenantId) Authenticates as a user and returns an authenticated SDK instance.co.ankatech.secure.client.model.Pkcs7ConversionResponseAuthenticatedSdk.convertPkcs7ToJose(co.ankatech.secure.client.model.Pkcs7ConversionRequest request) Converts a PKCS#7 signature to JOSE (JWS) format.AuthenticatedSdk.convertPkcs7ToJoseStream(co.ankatech.secure.client.model.Pkcs7ConversionStreamRequest metadata, File inputFile, File outputFile) Converts a PKCS#7 signature to JOSE using streaming.Decrypts a compact JWE (RFC 7516) token to recover the original plaintext.AuthenticatedSdk.decryptFile(Path input, Path output) Decrypts a file.AuthenticatedSdk.decryptFileCompact(Path input, Path output) Decrypts a file with forced compact format.AuthenticatedSdk.decryptFileStream(Path input, Path output) Decrypts a file with forced streaming format.AuthenticatedSdk.decryptThenVerify(String jweToken) Decrypts a JWE then verifies the inner JWS signature.AuthenticatedSdk.decryptThenVerifyFileCompact(Path input, Path output) Decrypts and verifies a nested JWE(JWS) file with forced compact format.AuthenticatedSdk.decryptThenVerifyFileStream(Path input, Path output) Decrypts a nested JWE(JWS) file then verifies the inner signature in streaming mode — the large-file counterpart ofAuthenticatedSdk.decryptThenVerifyFileCompact(Path, Path), and the inverse ofAuthenticatedSdk.signThenEncryptFileStream(String, String, Path, Path).Encrypts raw bytes using the key identified bykid.AuthenticatedSdk.encryptFile(String kid, Path input, Path output) Encrypts a file.AuthenticatedSdk.encryptFileCompact(String kid, Path input, Path output) Encrypts a file with forced compact format.AuthenticatedSdk.encryptFileStream(String kid, Path input, Path output) Encrypts a file with forced streaming format.AuthenticatedSdk.encryptFileUtilityStream(String kty, String alg, String publicKeyB64, Path input, Path output) Encrypts a file using a provided public key (without requiring key in ANKASecure).AuthenticatedSdk.getKeyMetadata(String kid) Retrieves metadata for a specific key.AuthenticatedSdk.getSupportedAlgorithms()Retrieves the complete list of cryptographic algorithms supported by the server.AuthenticatedSdk.getSupportedAlgorithms(AlgorithmFilter filter) Retrieves cryptographic algorithms matching the specified filter criteria.AuthenticatedSdk.listAllKeys(KeyFilters filters) Lists ALL keys matching the filters by auto-paginating through the server's paginated listing (the AWS-CLI pattern: the API pages, the client iterates).AuthenticatedSdk.listKeys(KeyFilters filters, int page, int size) Lists ONE PAGE of the keys accessible to the authenticated client.AuthenticatedSdk.performMigrationWorkflow(File pkcs7File, co.ankatech.secure.client.model.Pkcs7ConversionStreamRequest conversionRequest, File outputFile) Performs a complete PKCS#7-to-JOSE migration workflow with analysis and conversion.Re-encrypts data with a different key without decrypting to plaintext.AuthenticatedSdk.reencryptFile(String newKid, Path input, Path output) Re-encrypts a file.AuthenticatedSdk.reencryptFileCompact(String newKid, Path input, Path output) Re-encrypts a file with forced compact format.AuthenticatedSdk.reencryptFileStream(String newKid, String sourceKidOverride, Path input, Path output) Re-encrypts a file with forced streaming format.Re-signs data with a different key without verifying the original signature.AuthenticatedSdk.resign(String newKid, String jws, JwsSerialization serialization) Re-signs a JWS, explicitly selecting the JWS serialization (PRD §60).AuthenticatedSdk.resignFileCompact(String newKid, Path input, Path output) Re-signs a compact JWS file with forced compact format.AuthenticatedSdk.resignFileCompact(String newKid, Path input, Path output, JwsSerialization serialization) Re-signs a JWS file (attached), explicitly selecting the JWS serialization (PRD §60).AuthenticatedSdk.resignFileStream(Path oldJwsHeader, String newKid, Path input, Path output) Re-signs a detached JWS signature with forced streaming format.Signs raw bytes using the key identified bykid.AuthenticatedSdk.sign(String kid, byte[] data, JwsSerialization serialization) Signs raw bytes, explicitly selecting the JWS serialization (PRD §60).Signs a file.AuthenticatedSdk.signFileCompact(String kid, Path input, Path output) Signs a file with forced compact format.AuthenticatedSdk.signFileCompact(String kid, Path input, Path output, JwsSerialization serialization) Signs a file (attached), explicitly selecting the JWS serialization (PRD §60).AuthenticatedSdk.signFileStream(String kid, Path input, Path output) Signs a file with forced streaming format.AuthenticatedSdk.signThenEncrypt(String signKid, String encryptKid, byte[] data) Signs then encrypts data in a single operation (nested JWE containing JWS).AuthenticatedSdk.signThenEncrypt(String signKid, String encryptKid, byte[] data, JwsSerialization serialization) Signs then encrypts, explicitly selecting the inner-JWS serialization (PRD §60).AuthenticatedSdk.signThenEncryptFileCompact(String signKid, String encryptKid, Path input, Path output) Signs then encrypts a file with forced compact format.AuthenticatedSdk.signThenEncryptFileCompact(String signKid, String encryptKid, Path input, Path output, JwsSerialization serialization) Signs a file then encrypts it, explicitly selecting the inner-JWS serialization (PRD §60).AuthenticatedSdk.signThenEncryptFileStream(String signKid, String encryptKid, Path input, Path output) Signs a file then encrypts it in streaming mode (nested JWE(JWS), bounded memory) — the large-file counterpart ofAuthenticatedSdk.signThenEncryptFileCompact(String, String, Path, Path).AuthenticatedSdk.verifySignature(String jws) Verifies a compact JWS (RFC 7515) signature.AuthenticatedSdk.verifySignature(Path jwsFile) Verifies a JWS signature from a file, accepting either the compact form or the JWS-JSON form (serialization-agnostic; PRD §60).AuthenticatedSdk.verifySignatureStream(Path dataFile, Path signatureFile) Verifies a detached JWS signature with forced streaming format.AuthenticatedSdk.verifySignatureUtilityStream(String kty, String alg, String publicKeyB64, String signatureB64, Path dataFile) Verifies a signature using a provided public key (without requiring key in ANKASecure). -
Uses of AnkaSecureSdkException in co.ankatech.ankasecure.sdk.examples
Methods in co.ankatech.ankasecure.sdk.examples that throw AnkaSecureSdkExceptionModifier and TypeMethodDescriptionExamplePlaygroundKeys.kidForAlgorithm(String alg) Returns the first pre-provisioned kid whose algorithm equalsalg(case-insensitive).ExamplePlaygroundKeys.kidForAlgorithmAndOp(String alg, String keyOp) Returns the first pre-provisioned kid whose algorithm equalsalgAND whosekeyOpsincludekeyOp— for picking between keys that share an algorithm but differ in operation (e.g. distinct cross-kid endpoints). -
Uses of AnkaSecureSdkException in co.ankatech.ankasecure.sdk.exception
Subclasses of AnkaSecureSdkException in co.ankatech.ankasecure.sdk.exceptionModifier and TypeClassDescriptionfinal classThrown when a file-output operation cannot commit its result because a file already exists at the destination andFAIL_IF_EXISTS(the default) is in effect.final classA streaming request that requires HTTP/2 was about to be sent over a connection that negotiated something else, and was refused before any request byte was written.final classThrown when a streaming / atomic file-output operation cannot create its quarantine sidecar (<destination>.part) because a file already exists at the sidecar path — the signature of a stale sidecar orphaned by a prior crashed or force-killed operation (theCREATE_NEWsidecar is normally deleted on BOTH the success and the fail-closed paths, so a surviving one indicates an earlier abnormal termination).final classThrown when a streaming file-output operation cannot commit its result because the server-emitted end-of-stream integrity verdict did not pass (fail-closed).final classThe request body could not be written to completion, so nothing was committed.final classThrown when the server rejects a previously-issued access token with HTTP 401 on a data-plane operation. -
Uses of AnkaSecureSdkException in co.ankatech.ankasecure.sdk.internal.service.impl
Methods in co.ankatech.ankasecure.sdk.internal.service.impl that throw AnkaSecureSdkExceptionModifier and TypeMethodDescriptionco.ankatech.secure.client.model.Pkcs7AnalysisResponseMigrationServiceImpl.analyzePkcs7(co.ankatech.secure.client.model.Pkcs7AnalysisRequest request) co.ankatech.secure.client.model.Pkcs7AnalysisResponseMigrationServiceImpl.analyzePkcs7Stream(co.ankatech.secure.client.model.Pkcs7AnalysisStreamRequest metadata, File file) co.ankatech.secure.client.model.Pkcs7ConversionResponseMigrationServiceImpl.convertPkcs7ToJose(co.ankatech.secure.client.model.Pkcs7ConversionRequest request) MigrationServiceImpl.convertPkcs7ToJoseStream(co.ankatech.secure.client.model.Pkcs7ConversionStreamRequest metadata, File inputFile, File outputFile) co.ankatech.ankasecure.sdk.internal.service.CryptoService.DecryptBytesHolderCryptoServiceImpl.decryptBytes(String jweToken) Decrypt a Compact JWE that is already in RAM.CryptoServiceImpl.decryptFile(Path input, Path output) CryptoServiceImpl.decryptFileStream(Path input, Path output) Decrypts a JWET multipart file via streaming API.CombinedOperationsServiceImpl.decryptThenVerify(String jweToken) CombinedOperationsServiceImpl.decryptThenVerifyFile(Path input, Path output) CombinedOperationsServiceImpl.decryptThenVerifyFileStream(Path input, Path output) CryptoServiceImpl.encryptBytes(String kid, byte[] plaintext) Encrypt raw bytes with a server-side **public** key.CryptoServiceImpl.encryptFile(String kid, Path input, Path output) CryptoServiceImpl.encryptFileStream(String kid, Path input, Path output) MigrationServiceImpl.encryptFileUtilityStream(String kty, String alg, String pubB64, Path input, Path output) MigrationServiceImpl.encryptWithExternalPublicKey(String kty, String alg, String pubKeyB64, Path input, Path output) KeyManagementServiceImpl.getKeyMetadata(String kid) KeyManagementServiceImpl.getSupportedAlgorithms()KeyManagementServiceImpl.getSupportedAlgorithms(AlgorithmFilter filter) KeyManagementServiceImpl.listAllKeys(KeyFilters filters) KeyManagementServiceImpl.listKeys(KeyFilters filters, int page, int size) MigrationServiceImpl.performMigrationWorkflow(File pkcs7File, co.ankatech.secure.client.model.Pkcs7ConversionStreamRequest conversionRequest, File outputFile) CryptoServiceImpl.reencryptBytes(String newKid, String jweToken) Re-encrypt a JWE in memory so it becomes protected bynewKid.CryptoServiceImpl.reencryptFile(String newKid, Path input, Path output) CryptoServiceImpl.reencryptFileStream(String newKid, String sourceKidOverride, Path input, Path output) Server-side re-encryption of a ciphertext with a new key.SignatureServiceImpl.resignBytes(String newKid, String oldJws) Re-sign a Compact JWS switching tonewKid.SignatureServiceImpl.resignBytes(String newKid, String oldJws, JwsSerialization serialization) SignatureServiceImpl.resignFile(String newKid, Path oldJws, Path newJws) SignatureServiceImpl.resignFile(String newKid, Path oldJws, Path newJws, JwsSerialization serialization) SignatureServiceImpl.resignFileStream(Path oldJws, String newKid, Path input, Path newSigOut) Sign an in-memory payload with a server-side **private** key.SignatureServiceImpl.signBytes(String kid, byte[] data, JwsSerialization serialization) SignatureServiceImpl.signFile(String kid, Path input, Path jwsOut, JwsSerialization serialization) SignatureServiceImpl.signFileStream(String kid, Path input, Path sigOut) CombinedOperationsServiceImpl.signThenEncrypt(String signKid, String encryptKid, byte[] data) CombinedOperationsServiceImpl.signThenEncrypt(String signKid, String encryptKid, byte[] data, JwsSerialization serialization) CombinedOperationsServiceImpl.signThenEncryptFile(String signKid, String encryptKid, Path input, Path output) CombinedOperationsServiceImpl.signThenEncryptFile(String signKid, String encryptKid, Path input, Path output, JwsSerialization serialization) CombinedOperationsServiceImpl.signThenEncryptFileStream(String signKid, String encryptKid, Path input, Path output) SignatureServiceImpl.verifySignature(Path jwsFile) SignatureServiceImpl.verifySignatureBytes(String jwsToken) Verify a Compact JWS that is fully in memory.MigrationServiceImpl.verifySignatureStream(Path input, Path jwsHdr) MigrationServiceImpl.verifySignatureUtilityStream(String kty, String alg, String pubKeyB64, String sigB64, Path input) MigrationServiceImpl.verifyWithExternalPublicKey(String kty, String alg, String pubKeyB64, String sigB64, Path input) -
Uses of AnkaSecureSdkException in co.ankatech.ankasecure.sdk.operations
Methods in co.ankatech.ankasecure.sdk.operations that throw AnkaSecureSdkExceptionModifier and TypeMethodDescriptionco.ankatech.secure.client.model.Pkcs7AnalysisResponseUtilityOperations.analyzePkcs7(co.ankatech.secure.client.model.Pkcs7AnalysisRequest request) Analyzes a PKCS#7 structure (compact mode).co.ankatech.secure.client.model.Pkcs7AnalysisResponseUtilityOperations.analyzePkcs7Stream(co.ankatech.secure.client.model.Pkcs7AnalysisStreamRequest metadata, File file) Analyzes a PKCS#7 structure (streaming mode for large files).co.ankatech.secure.client.model.Pkcs7ConversionResponseUtilityOperations.convertPkcs7ToJose(co.ankatech.secure.client.model.Pkcs7ConversionRequest request) Converts PKCS#7 signed-data to JOSE JWS format (compact mode).UtilityOperations.convertPkcs7ToJoseStream(co.ankatech.secure.client.model.Pkcs7ConversionStreamRequest metadata, File inputFile, File outputFile) Converts PKCS#7 signed-data to JOSE JWS format (streaming mode for large files).Decrypts a compact JWE token string.EncryptionOperations.decryptFileCompact(Path input, Path output) Decrypts a file containing a compact JWE token.EncryptionOperations.decryptFileStream(Path input, Path output) Decrypts a file in streaming mode (designed for large files >100 MB).CombinedOperations.decryptThenVerify(String jweToken) CombinedOperations.decryptThenVerifyFileCompact(Path input, Path output) CombinedOperations.decryptThenVerifyFileStream(Path input, Path output) Encrypts raw bytes using the key identified bykid.EncryptionOperations.encryptFileCompact(String kid, Path input, Path output) Encrypts a file using the key identified bykid.EncryptionOperations.encryptFileStream(String kid, Path input, Path output) Encrypts a file in streaming mode (designed for large files >100 MB).CombinedOperations.encryptFileUtilityStream(String kty, String alg, String publicKeyB64, Path input, Path output) KeyManagementOperations.getKeyMetadata(String kid) Retrieves complete metadata for a specific key.AlgorithmCatalogOperations.getSupportedAlgorithms()Retrieves the complete catalog of cryptographic algorithms supported by the server.AlgorithmCatalogOperations.getSupportedAlgorithms(AlgorithmFilter filter) Retrieves supported algorithms matching the specified filter criteria.KeyManagementOperations.listAllKeys(KeyFilters filters) Lists ALL keys matching the filters via client-side auto-pagination (bounded; throws PaginationCeilingExceededException beyond the hard cap).KeyManagementOperations.listKeys(KeyFilters filters, int page, int size) Lists ONE PAGE of keys with optional server-side filters (applied BEFORE pagination — the page totals are filtered, tenant-scoped counts).UtilityOperations.performMigrationWorkflow(File pkcs7File, co.ankatech.secure.client.model.Pkcs7ConversionStreamRequest conversionRequest, File outputFile) Performs a complete PKCS#7-to-JOSE migration workflow with analysis and conversion.CombinedOperations.reencryptFileCompact(String newKid, Path input, Path output) CombinedOperations.reencryptFileStream(String newKid, String sourceKidOverride, Path input, Path output) CombinedOperations.resign(String newKid, String jws, JwsSerialization serialization) Re-signs a JWS with an explicit JWS serialization selection (PRD §60).CombinedOperations.resignFileCompact(String newKid, Path input, Path output) CombinedOperations.resignFileCompact(String newKid, Path input, Path output, JwsSerialization serialization) Re-signs a file with an explicit JWS serialization selection (PRD §60).CombinedOperations.resignFileStream(Path oldJwsHeader, String newKid, Path input, Path output) Signs raw bytes using the key identified bykid.SignatureOperations.sign(String kid, byte[] data, JwsSerialization serialization) Signs raw bytes with an explicit JWS serialization selection (PRD §60).SignatureOperations.signFileCompact(String kid, Path input, Path output) Signs a file using the key identified bykid.SignatureOperations.signFileCompact(String kid, Path input, Path output, JwsSerialization serialization) Signs a file with an explicit JWS serialization selection (PRD §60).SignatureOperations.signFileStream(String kid, Path input, Path output) Signs a file in streaming mode (designed for large files >100 MB).CombinedOperations.signThenEncrypt(String signKid, String encryptKid, byte[] data) CombinedOperations.signThenEncrypt(String signKid, String encryptKid, byte[] data, JwsSerialization serialization) Signs then encrypts with an explicit inner-JWS serialization selection (PRD §60).CombinedOperations.signThenEncryptFileCompact(String signKid, String encryptKid, Path input, Path output) CombinedOperations.signThenEncryptFileCompact(String signKid, String encryptKid, Path input, Path output, JwsSerialization serialization) Signs a file then encrypts it with an explicit inner-JWS serialization selection (PRD §60).CombinedOperations.signThenEncryptFileStream(String signKid, String encryptKid, Path input, Path output) SignatureOperations.verifySignature(String jws) Verifies a compact JWS signature string.SignatureOperations.verifySignatureFile(Path jwsFile) Verifies a JWS signature from a file (compact or JWS-JSON).SignatureOperations.verifySignatureStream(Path dataFile, Path signatureFile) Verifies a detached signature in streaming mode (designed for large files >100 MB).CombinedOperations.verifySignatureUtilityStream(String kty, String alg, String publicKeyB64, String signatureB64, Path dataFile) SignatureOperations.verifySignatureUtilityStream(String kty, String alg, String publicKeyB64, String signatureB64, Path dataFile) Verifies a signature using an external public key (utility operation).