| Package | Description |
|---|---|
| org.apache.uima.ducc.common.crypto |
| Modifier and Type | Method and Description |
|---|---|
Object |
Crypto.decrypt(byte[] byteArray) |
Object |
ICrypto.decrypt(byte[] byteArray) |
byte[] |
Crypto.encrypt(Object o) |
byte[] |
ICrypto.encrypt(Object o) |
byte[] |
Crypto.getSignature() |
boolean |
Crypto.isValid(byte[] signature) |
static void |
Crypto.main(String[] args) |
| Constructor and Description |
|---|
Crypto(String user)
Constructor for validators
- use isValid to check that the decrypted signature matches the provided user id
|
Crypto(String user,
boolean create)
Constructor for requesters
- getSignature returns the the encrypted userid
|
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.