Smutty


Smutty.Smutty_GPG_SignedMessage

Class Smutty_GPG_SignedMessage

Smutty_Object
|
+--Smutty_GPG_SignedMessage

public class Smutty_GPG_SignedMessage
extends Smutty_Object

represents a signed http post request, then provides some methods for finding out information about it

/


Constructor Summary

Smutty_GPG_SignedMessage(String data)

constructor

Method Summary
String

getMessageBody()

returns the body of the request

String

getText()

returns this messages text, all of it

private static boolean

isValidHeader(String name, String value)

checks a header is ok, ie it doesn't contain invalid chars, and is one of the ones defined in the spec.

private nothing

processMessage(String data)

processes a complete signed message block

private nothing

processSection(String tag, String data, String body, array headers)

processes a section of a message (start tag, headers and body)

Constructor Detail

Smutty_GPG_SignedMessage

public Smutty_GPG_SignedMessage(String data)

constructor

Parameters:
data - the signed message data

Method Detail

getMessageBody

public String getMessageBody()

returns the body of the request

Returns:
the message body
Go to code

getText

public String getText()

returns this messages text, all of it

Returns:
the message text
Go to code

isValidHeader

private static boolean isValidHeader(String name, String value)

checks a header is ok, ie it doesn't contain invalid chars, and is one of the ones defined in the spec.

Parameters:
name - the name to check
value - the value to check
Returns:
if header is valid
Go to code

processMessage

private nothing processMessage(String data)

processes a complete signed message block

Parameters:
data - the message data
Go to code

processSection

private nothing processSection(String tag, String data, String body, array headers)

processes a section of a message (start tag, headers and body)

Parameters:
tag - the tag we're expecting
data - the section data
body - section body variable to set
headers - section headers to set
Go to code

Smutty