@InterfaceAudience.Private @InterfaceStability.Evolving public class CryptoAES extends Object
Constructor and Description |
---|
CryptoAES(String transformation,
Properties properties,
byte[] inKey,
byte[] outKey,
byte[] inIv,
byte[] outIv) |
Modifier and Type | Method and Description |
---|---|
byte[] |
unwrap(byte[] data,
int offset,
int len)
Decrypts input data.
|
byte[] |
wrap(byte[] data,
int offset,
int len)
Encrypts input data.
|
public CryptoAES(String transformation, Properties properties, byte[] inKey, byte[] outKey, byte[] inIv, byte[] outIv) throws IOException
IOException
public byte[] wrap(byte[] data, int offset, int len) throws SaslException
data
- the input byte arrayoffset
- the offset in input where the input startslen
- the input lengthSaslException
- if error happenspublic byte[] unwrap(byte[] data, int offset, int len) throws SaslException
data
- the input byte arrayoffset
- the offset in input where the input startslen
- the input lengthSaslException
- if error happensCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.