Class MigrationServiceImpl
java.lang.Object
co.ankatech.ankasecure.sdk.internal.service.impl.MigrationServiceImpl
- All Implemented Interfaces:
MigrationService
-
Constructor Summary
ConstructorsConstructorDescriptionMigrationServiceImpl(co.ankatech.ankasecure.openapi.client.AnkaSecureOpenApiClient api) -
Method Summary
Modifier and TypeMethodDescriptionvoidexportKeyToFile(String kid, Path output) voidvoidverifySignatureStream(Path input, Path jwsHdr)
-
Constructor Details
-
MigrationServiceImpl
public MigrationServiceImpl(co.ankatech.ankasecure.openapi.client.AnkaSecureOpenApiClient api)
-
-
Method Details
-
encryptWithExternalPublicKey
public EncryptResult encryptWithExternalPublicKey(String kty, String alg, String pubKeyB64, Path input, Path output) throws AnkaSecureSdkException - Specified by:
encryptWithExternalPublicKeyin interfaceMigrationService- Throws:
AnkaSecureSdkException
-
verifyWithExternalPublicKey
public VerifySignatureResult verifyWithExternalPublicKey(String kty, String alg, String pubKeyB64, String sigB64, Path input) throws AnkaSecureSdkException - Specified by:
verifyWithExternalPublicKeyin interfaceMigrationService- Throws:
AnkaSecureSdkException
-
importKey
- Specified by:
importKeyin interfaceMigrationService- Throws:
AnkaSecureSdkException
-
importPrivateKeyPkcs12
- Specified by:
importPrivateKeyPkcs12in interfaceMigrationService- Throws:
AnkaSecureSdkException
-
exportKey
- Specified by:
exportKeyin interfaceMigrationService- Throws:
AnkaSecureSdkException
-
exportKeyToFile
- Specified by:
exportKeyToFilein interfaceMigrationService- Throws:
AnkaSecureSdkException
-
verifySignatureStream
public VerifySignatureResult verifySignatureStream(Path input, Path jwsHdr) throws AnkaSecureSdkException - Specified by:
verifySignatureStreamin interfaceMigrationService- Throws:
AnkaSecureSdkException
-
verifySignatureUtilityStream
public VerifySignatureResult verifySignatureUtilityStream(String kty, String alg, String pubKeyB64, String sigB64, Path input) throws AnkaSecureSdkException - Specified by:
verifySignatureUtilityStreamin interfaceMigrationService- Throws:
AnkaSecureSdkException
-
encryptFileUtilityStream
public EncryptResult encryptFileUtilityStream(String kty, String alg, String pubB64, Path input, Path output) throws AnkaSecureSdkException - Specified by:
encryptFileUtilityStreamin interfaceMigrationService- Throws:
AnkaSecureSdkException
-