com.davecoss.uploader.auth
public class AuthHash extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthHash.HashException |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
hash |
Constructor and Description |
---|
AuthHash(java.lang.String hash) |
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes() |
static byte[] |
charArray2byteArray(char[] chars) |
static GenericBase64 |
getEncoder() |
static AuthHash |
getInstance(byte[] data,
byte[] secretBytes) |
static AuthHash |
getInstance(java.lang.String message,
byte[] secretBytes) |
static void |
init(GenericBase64 encoder) |
java.lang.String |
toURLEncoded() |
public static void init(GenericBase64 encoder)
public static GenericBase64 getEncoder()
public static byte[] charArray2byteArray(char[] chars)
public static AuthHash getInstance(byte[] data, byte[] secretBytes) throws AuthHash.HashException
AuthHash.HashException
public static AuthHash getInstance(java.lang.String message, byte[] secretBytes) throws AuthHash.HashException
AuthHash.HashException
public java.lang.String toURLEncoded() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public byte[] bytes()
Last build: 2014-03-11 10:00 Copyright © 2013 David Coss. All Rights Reserved.