Example usage for Java javax.crypto.spec SecretKeySpec fields, constructors, methods, implement or subclass
The text is from its open source code.
SecretKeySpec(byte[] key, String algorithm) Constructs a secret key from the given byte array. | |
SecretKeySpec(byte[] key, int offset, int len, String algorithm) Constructs a secret key from the given byte array, using the first len bytes of key , starting at offset inclusive. |
String | getAlgorithm() Returns the name of the algorithm associated with this secret key. |
byte[] | getEncoded() Returns the key material of this secret key. |