Java javax.crypto.spec SecretKeySpec fields, constructors, methods, implement or subclass

Example usage for Java javax.crypto.spec SecretKeySpec fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.crypto.spec SecretKeySpec.

The text is from its open source code.

Constructor

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.

Method

StringgetAlgorithm()
Returns the name of the algorithm associated with this secret key.
byte[]getEncoded()
Returns the key material of this secret key.