|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.document.Advertisement
net.jxta.document.ExtendableAdvertisement
net.jxta.impl.protocol.PSEConfigAdv
Contains parameters for configuration of the PSE Membership service.
Note: This implementation contemplates multiple root certs in its schema, but the API has not yet been extended to include this functionality.
Nested Class Summary | |
static class |
PSEConfigAdv.Instantiator
Instantiator for PlatformConfig |
Method Summary | |
Object |
clone()
Make a safe clone of this PSEConfigAdv. |
static String |
getAdvertisementType()
{@inheritDoc} |
String |
getAdvType()
|
String |
getBaseAdvType()
|
String |
getCert()
Returns the Root Ceritficate for this peer encoded as a BASE64 String. |
X509Certificate |
getCertificate()
Returns the Root Certificate for this peer. |
X509Certificate[] |
getCertificateChain()
Returns the Root Certificate for this peer. |
Document |
getDocument(MimeMediaType encodeAs)
|
EncryptedPrivateKeyInfo |
getEncryptedPrivateKey()
Get the encrypted private key from this advertisement. |
String |
getEncryptedPrivateKeyAlgo()
Get the encrypted private key algorithm from this advertisement. |
String |
getEncryptedPrivKey()
Get the encrypted private key from this advertisement. |
ID |
getID()
|
String[] |
getIndexFields()
|
URI |
getKeyStoreLocation()
|
String |
getKeyStoreProvider()
|
String |
getKeyStoreType()
|
PrivateKey |
getPrivateKey(char[] password)
Get the private key from this advertisement. |
protected boolean |
handleElement(Element raw)
|
void |
setCert(String newCert)
Returns the Root Ceritficate for this peer encoded as a BASE64 String. |
void |
setCertificate(X509Certificate newCert)
Sets the Root Certificate for this peer. |
void |
setCertificateChain(X509Certificate[] newCert)
Sets the Root Certificate for this peer. |
void |
setEncryptedPrivateKey(EncryptedPrivateKeyInfo newPriv,
String algorithm)
Set the encrypted private key for this advertisement. |
void |
setEncryptedPrivateKey(String newPriv,
String algorithm)
Set the encrypted private key for this advertisement. |
void |
setKeyStoreLocation(URI location)
|
void |
setKeyStoreProvider(String provider)
|
void |
setKeyStoreType(String type)
|
void |
setPrivateKey(PrivateKey newPriv,
char[] password)
Set the encrypted private key for this advertisement. |
Methods inherited from class net.jxta.document.Advertisement |
toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public Object clone()
public static String getAdvertisementType()
public String getAdvType()
public final String getBaseAdvType()
public ID getID()
public X509Certificate getCertificate()
public X509Certificate[] getCertificateChain()
public String getCert()
public void setCert(String newCert)
public void setCertificate(X509Certificate newCert)
newCert
- The root certificate to be associated with this peer or
null
if clearing the advertisement.public void setCertificateChain(X509Certificate[] newCert)
newCert
- The root certificate to be associated with this peer or
null
if clearing the advertisement.public PrivateKey getPrivateKey(char[] password)
password
- the password to use in attempting to decrypt the private
key.
public EncryptedPrivateKeyInfo getEncryptedPrivateKey()
public String getEncryptedPrivateKeyAlgo()
public String getEncryptedPrivKey()
public String getKeyStoreType()
public void setKeyStoreType(String type)
public String getKeyStoreProvider()
public void setKeyStoreProvider(String provider)
public URI getKeyStoreLocation()
public void setKeyStoreLocation(URI location)
public void setEncryptedPrivateKey(String newPriv, String algorithm)
newPriv
- a BASE64 String of a DER encoded PKCS8
EncrpytePrivateKeyInfo.algorithm
- The public key algorithm used by this private key.
Currently only "RSA" is supported.public void setEncryptedPrivateKey(EncryptedPrivateKeyInfo newPriv, String algorithm)
newPriv
- The encrypted private key.algorithm
- The public key algorithm used by this private key.
Currently only "RSA" is supported.public void setPrivateKey(PrivateKey newPriv, char[] password)
password
- The password to be used in encrypting the private keynewPriv
- The private key to be stored in encrypted form.protected boolean handleElement(Element raw)
public Document getDocument(MimeMediaType encodeAs)
public String[] getIndexFields()
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |