Class SecureCode


  • public class SecureCode
    extends java.lang.Object
    Immutable, 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
      boolean equals​(java.lang.Object obj)  
      byte[] getBytes()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SecureCode

        public SecureCode​(byte[] bytes)
      • SecureCode

        public SecureCode​(java.lang.String value)
                   throws java.lang.IllegalArgumentException
        Parameters:
        value -
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • getBytes

        public byte[] getBytes()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object