| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.plugin.PluginVerifier
public class PluginVerifier
This class verifies the signature of the given Jar and provides informations about its signers
| Constructor Summary | |
|---|---|
PluginVerifier(PluginInfo info)
Initialized a new PluginVerifier It verfies all jars used by the plugin and provides information about its signers.  | 
|
| Method Summary | |
|---|---|
 java.security.cert.Certificate[] | 
getCertificates()
Returns the list of certificates (mostly X509)  | 
 java.lang.String[] | 
getSignedJars()
Returns a list of signed jars  | 
 java.lang.String | 
getSigners()
Returns a String with all signers.  | 
 java.lang.String[] | 
getUnsignedJars()
Returns a list of unsigned jars  | 
 boolean | 
isSigned()
Return true, (only) if all jars of the plugin are signed.  | 
 boolean | 
isTrustedBy(java.lang.String[] encodedPKs)
Returns true, if all jars are signed and trusted by the given keyset  | 
 boolean | 
isTrustedByXNap()
Returns true, if all jars are signed and trusted by XNap  | 
 boolean | 
isValid()
Returns true if all jars are consistent and if signed, the signature must be valid.  | 
static java.lang.String | 
readablePrincipal(java.security.Principal prin)
Formats the Principal to make it more human readable  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PluginVerifier(PluginInfo info)
               throws java.io.IOException
java.io.IOException| Method Detail | 
|---|
public boolean isValid()
public boolean isSigned()
public boolean isTrustedByXNap()
public boolean isTrustedBy(java.lang.String[] encodedPKs)
encodedPKs - StringArray of Base64-encoded X509-PublicKeyspublic java.lang.String[] getUnsignedJars()
public java.lang.String[] getSignedJars()
public java.security.cert.Certificate[] getCertificates()
public static java.lang.String readablePrincipal(java.security.Principal prin)
public java.lang.String getSigners()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||