Class UtilityOperations

java.lang.Object
co.ankatech.ankasecure.sdk.operations.UtilityOperations

public final class UtilityOperations extends Object
Utility operations facade for PKCS#7 analysis, conversion, and migration.

Public facade for utility operations including PKCS#7 analysis and migration. All methods are exposed via AuthenticatedSdk.

Since:
3.0.0
Author:
ANKATech Solutions Inc.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UtilityOperations(InternalServiceFactory svc, co.ankatech.ankasecure.openapi.client.AnkaSecureOpenApiClient openApiClient, org.slf4j.Logger userLogger)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    co.ankatech.secure.client.model.Pkcs7AnalysisResponse
    analyzePkcs7(co.ankatech.secure.client.model.Pkcs7AnalysisRequest request)
    Analyzes a PKCS#7 structure (compact mode).
    co.ankatech.secure.client.model.Pkcs7AnalysisResponse
    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.Pkcs7ConversionResponse
    convertPkcs7ToJose(co.ankatech.secure.client.model.Pkcs7ConversionRequest request)
    Converts PKCS#7 signed-data to JOSE JWS format (compact mode).
    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).
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UtilityOperations

      public UtilityOperations(InternalServiceFactory svc, co.ankatech.ankasecure.openapi.client.AnkaSecureOpenApiClient openApiClient, org.slf4j.Logger userLogger)
  • Method Details

    • analyzePkcs7

      public co.ankatech.secure.client.model.Pkcs7AnalysisResponse analyzePkcs7(co.ankatech.secure.client.model.Pkcs7AnalysisRequest request) throws AnkaSecureSdkException
      Analyzes a PKCS#7 structure (compact mode).
      Throws:
      AnkaSecureSdkException
    • analyzePkcs7Stream

      public co.ankatech.secure.client.model.Pkcs7AnalysisResponse analyzePkcs7Stream(co.ankatech.secure.client.model.Pkcs7AnalysisStreamRequest metadata, File file) throws AnkaSecureSdkException
      Analyzes a PKCS#7 structure (streaming mode for large files).
      Throws:
      AnkaSecureSdkException
    • convertPkcs7ToJose

      public co.ankatech.secure.client.model.Pkcs7ConversionResponse convertPkcs7ToJose(co.ankatech.secure.client.model.Pkcs7ConversionRequest request) throws AnkaSecureSdkException
      Converts PKCS#7 signed-data to JOSE JWS format (compact mode).
      Throws:
      AnkaSecureSdkException
    • convertPkcs7ToJoseStream

      public File convertPkcs7ToJoseStream(co.ankatech.secure.client.model.Pkcs7ConversionStreamRequest metadata, File inputFile, File outputFile) throws AnkaSecureSdkException
      Converts PKCS#7 signed-data to JOSE JWS format (streaming mode for large files).
      Throws:
      AnkaSecureSdkException
    • performMigrationWorkflow

      public MigrationWorkflowResult performMigrationWorkflow(File pkcs7File, co.ankatech.secure.client.model.Pkcs7ConversionStreamRequest conversionRequest, File outputFile) throws AnkaSecureSdkException
      Performs a complete PKCS#7-to-JOSE migration workflow with analysis and conversion.
      Throws:
      AnkaSecureSdkException