Project JXTA

net.jxta.protocol
Class SignedAdvertisement

java.lang.Object
  extended by net.jxta.document.Advertisement
      extended by net.jxta.document.ExtendableAdvertisement
          extended by net.jxta.protocol.SignedAdvertisement

public abstract class SignedAdvertisement
extends ExtendableAdvertisement

A container for signed Advertisements


Field Summary
protected  Advertisement adv
           
protected  Credential signer
           
 
Constructor Summary
SignedAdvertisement()
           
 
Method Summary
 Advertisement getAdvertisement()
          Gets the Advertisement.
static String getAdvertisementType()
          Returns the identifying type of this Advertisement.
 String getBaseAdvType()
          Returns the base type of this advertisement hierarchy.
 Credential getSigner()
          Returns the credential which signed the advertisement.
 void setAdvertisement(Advertisement adv)
          Sets the Advertisement to be signed.
 void setSigner(Credential cred)
          Sets the Credential which will sign the advertisement.
 
Methods inherited from class net.jxta.document.ExtendableAdvertisement
getDocument, handleElement
 
Methods inherited from class net.jxta.document.Advertisement
clone, getAdvType, getID, getIndexFields, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

signer

protected Credential signer

adv

protected Advertisement adv
Constructor Detail

SignedAdvertisement

public SignedAdvertisement()
Method Detail

getAdvertisementType

public static String getAdvertisementType()
Returns the identifying type of this Advertisement.

Returns:
String the type of advertisement

getBaseAdvType

public final String getBaseAdvType()
Returns the base type of this advertisement hierarchy. Typically, only the most basic advertisement of a type will implement this method and declare it as final.

Specified by:
getBaseAdvType in class ExtendableAdvertisement
Returns:
String the base type of advertisements in this hierarchy.

getAdvertisement

public Advertisement getAdvertisement()
Gets the Advertisement.


setAdvertisement

public void setAdvertisement(Advertisement adv)
Sets the Advertisement to be signed.


getSigner

public Credential getSigner()
Returns the credential which signed the advertisement.


setSigner

public void setSigner(Credential cred)
Sets the Credential which will sign the advertisement.


JXTA J2SE