Package dev.paseto.jpaseto.impl.crypto
Class BaseV1LocalCryptoProvider
- java.lang.Object
-
- dev.paseto.jpaseto.impl.crypto.BaseV1LocalCryptoProvider
-
- All Implemented Interfaces:
V1LocalCryptoProvider
public abstract class BaseV1LocalCryptoProvider extends java.lang.Object implements V1LocalCryptoProvider
-
-
Constructor Summary
Constructors Constructor Description BaseV1LocalCryptoProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte[]decrypt(byte[] encryptedBytes, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)byte[]encrypt(byte[] payload, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)protected abstract byte[]hkdfSha384(javax.crypto.SecretKey sharedSecret, byte[] salt, byte[] info)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.paseto.jpaseto.impl.crypto.V1LocalCryptoProvider
nonce
-
-
-
-
Method Detail
-
encrypt
public byte[] encrypt(byte[] payload, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)- Specified by:
encryptin interfaceV1LocalCryptoProvider
-
decrypt
public byte[] decrypt(byte[] encryptedBytes, byte[] footer, byte[] nonce, javax.crypto.SecretKey sharedSecret)- Specified by:
decryptin interfaceV1LocalCryptoProvider
-
hkdfSha384
protected abstract byte[] hkdfSha384(javax.crypto.SecretKey sharedSecret, byte[] salt, byte[] info)
-
-