List of usage examples for javax.crypto SecretKey SecretKey
SecretKey
From source file:org.apache.xml.security.test.signature.HMACOutputLengthTest.java
private static SecretKey getSecretKey(final byte[] secret) { return new SecretKey() { public String getFormat() { return "RAW"; }/*from w w w. j a va2 s . c o m*/ public byte[] getEncoded() { return secret; } public String getAlgorithm() { return "SECRET"; } }; }