Package com.fizzed.crux.util
Class SecureCode
- java.lang.Object
-
- com.fizzed.crux.util.SecureCode
-
public class SecureCode extends java.lang.ObjectImmutable, secure, random code internally stored as a byte array but externally safe to use in a URI. The bytes will be base64 encoded using URL-safe chars and the padding chars will also be dropped off (RFC 7515).
-
-
Constructor Summary
Constructors Constructor Description SecureCode(byte[] bytes)SecureCode(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)byte[]getBytes()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-