com.irisel.util.cipher
Class BasicAuth

java.lang.Object
  extended by com.irisel.util.cipher.BasicAuth

public class BasicAuth
extends java.lang.Object

Allow to encode/decode the authentification

Author:
Deisss (LGPLv3)

Constructor Summary
BasicAuth()
           
 
Method Summary
static java.lang.String[] decode(java.lang.String auth)
          Decode the basic auth and convert it to array login/password
static java.lang.String encode(java.lang.String s)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuth

public BasicAuth()
Method Detail

decode

public static java.lang.String[] decode(java.lang.String auth)
Decode the basic auth and convert it to array login/password

Parameters:
auth - The string encoded authentification
Returns:
The login (case 0), the password (case 1)

encode

public static java.lang.String encode(java.lang.String s)

main

public static void main(java.lang.String[] args)