|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.util.codec.Base64
public class Base64
Performs simple Base64 encoding and decode suitable for authentication. Note that this is not a general purpose codec.
Constructor Summary | |
---|---|
Base64()
|
Method Summary | |
---|---|
static java.io.BufferedReader |
decode(java.lang.String b64string)
Decode base64 encoded String |
static java.lang.String |
decodeAsString(java.lang.String b64string)
Decode base64 encoded String |
static java.io.ByteArrayOutputStream |
encode(java.lang.String plaintext)
Encode String to base64 |
static java.lang.String |
encodeAsString(java.lang.String plaintext)
Encode String to base64 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Base64()
Method Detail |
---|
public static java.io.BufferedReader decode(java.lang.String b64string) throws javax.mail.MessagingException
b64string
- base64 String
javax.mail.MessagingException
- get thrown when an error was detected while trying to decode the Stringpublic static java.lang.String decodeAsString(java.lang.String b64string) throws java.io.IOException, javax.mail.MessagingException
b64string
- base64 Sting
javax.mail.MessagingException
- get thrown when an error was detected while trying to decode the String
java.io.IOException
- get thrown when I/O error was detectedpublic static java.io.ByteArrayOutputStream encode(java.lang.String plaintext) throws java.io.IOException, javax.mail.MessagingException
plaintext
- the plaintext to encode
java.io.IOException
- get thrown when I/O error was detected
javax.mail.MessagingException
- get thrown when an error was detected while trying to encode the Stringpublic static java.lang.String encodeAsString(java.lang.String plaintext) throws java.io.IOException, javax.mail.MessagingException
plaintext
- the plaintext to decode
java.io.IOException
- get thrown when I/O error was detected
javax.mail.MessagingException
- get thrown when an error was detected while trying to encode the String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |