|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.crypto.Encryption
public final class Encryption
This class encrypts and decrypts textual inputs.
Constructor Summary | |
---|---|
Encryption(InputInfo ii)
Constructor. |
Method Summary | |
---|---|
Str |
encryption(byte[] in,
byte[] s,
byte[] k,
byte[] a,
boolean ec)
Encrypts or decrypts the given input. |
Item |
hmac(byte[] msg,
byte[] k,
byte[] a,
byte[] enc)
Creates a message authentication code (MAC) for the given input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Encryption(InputInfo ii)
ii
- input infoMethod Detail |
---|
public Str encryption(byte[] in, byte[] s, byte[] k, byte[] a, boolean ec) throws QueryException
in
- inputs
- encryption typek
- secret keya
- encryption algorithmec
- encrypt or decrypt
QueryException
- query exceptionpublic Item hmac(byte[] msg, byte[] k, byte[] a, byte[] enc) throws QueryException
msg
- inputk
- secret keya
- encryption algorithmenc
- encoding
QueryException
- query exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |