Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.cisco.ipphone.sdk
Class Text2Base64

    java.lang.Object
      com.cisco.ipphone.sdk.Text2Base64

    public class Text2Base64

extends java.lang.Object

The `Text2Base64` class converts a standard ASCII text string into a Base64-encoded string. Base64 encoding is used for many purposes, especially by HTTP. One common use is encoding usernames and passwords for HTTP Basic Authentication.

Constructor Summary
`Text2Base64()`

Method Summary
`static java.lang.String` | `getBase64(java.lang.String text)` This method accepts an ASCII text string and returns the Base64-encoded version of that string.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Text2Base64

    public Text2Base64()

Method Detail

### getBase64

    public static java.lang.String getBase64(java.lang.String text)

  This method accepts an ASCII text string and returns the Base64-encoded version of that string. This method is static which allows the encoding to be performed without instantiating a `Text2Base64` object.

  Parameters:
    `text` - The ASCII text string to be Base64 encoded
  Returns:
    The Base64-encoded string

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD