Package com.hyperwallet.clientsdk.util
Class HyperwalletEncryption
- java.lang.Object
-
- com.hyperwallet.clientsdk.util.HyperwalletEncryption
-
public class HyperwalletEncryption extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHyperwalletEncryption.HyperwalletEncryptionBuilder
-
Constructor Summary
Constructors Constructor Description HyperwalletEncryption(com.nimbusds.jose.JWEAlgorithm encryptionAlgorithm, com.nimbusds.jose.JWSAlgorithm signAlgorithm, com.nimbusds.jose.EncryptionMethod encryptionMethod, String clientPrivateKeySetLocation, String hyperwalletKeySetLocation, Integer jwsExpirationMinutes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecrypt(String body)Stringencrypt(String body)StringgetClientPrivateKeySetLocation()com.nimbusds.jose.JWEAlgorithmgetEncryptionAlgorithm()com.nimbusds.jose.EncryptionMethodgetEncryptionMethod()StringgetHyperwalletKeySetLocation()IntegergetJwsExpirationMinutes()ProxygetProxy()StringgetProxyPassword()StringgetProxyUsername()com.nimbusds.jose.JWSAlgorithmgetSignAlgorithm()voidsetProxy(String url, Integer port)voidsetProxy(Proxy proxy)voidsetProxyPassword(String proxyPassword)voidsetProxyUsername(String proxyUsername)BooleanusesProxy()voidverifySignatureExpirationDate(Object signatureExpirationDate)
-
-
-
Constructor Detail
-
HyperwalletEncryption
public HyperwalletEncryption(com.nimbusds.jose.JWEAlgorithm encryptionAlgorithm, com.nimbusds.jose.JWSAlgorithm signAlgorithm, com.nimbusds.jose.EncryptionMethod encryptionMethod, String clientPrivateKeySetLocation, String hyperwalletKeySetLocation, Integer jwsExpirationMinutes)
-
-
Method Detail
-
encrypt
public String encrypt(String body) throws com.nimbusds.jose.JOSEException, IOException, ParseException
- Throws:
com.nimbusds.jose.JOSEExceptionIOExceptionParseException
-
decrypt
public String decrypt(String body) throws ParseException, IOException, com.nimbusds.jose.JOSEException
- Throws:
ParseExceptionIOExceptioncom.nimbusds.jose.JOSEException
-
verifySignatureExpirationDate
public void verifySignatureExpirationDate(Object signatureExpirationDate)
-
getEncryptionAlgorithm
public com.nimbusds.jose.JWEAlgorithm getEncryptionAlgorithm()
-
getSignAlgorithm
public com.nimbusds.jose.JWSAlgorithm getSignAlgorithm()
-
getEncryptionMethod
public com.nimbusds.jose.EncryptionMethod getEncryptionMethod()
-
getClientPrivateKeySetLocation
public String getClientPrivateKeySetLocation()
-
getHyperwalletKeySetLocation
public String getHyperwalletKeySetLocation()
-
getJwsExpirationMinutes
public Integer getJwsExpirationMinutes()
-
usesProxy
public Boolean usesProxy()
-
setProxy
public void setProxy(Proxy proxy)
-
getProxy
public Proxy getProxy()
-
getProxyUsername
public String getProxyUsername()
-
setProxyUsername
public void setProxyUsername(String proxyUsername)
-
getProxyPassword
public String getProxyPassword()
-
setProxyPassword
public void setProxyPassword(String proxyPassword)
-
-