Methods Summary |
---|
public java.security.cert.Certificate$CertificateRep | getCertificateRep()
Object obj = super.writeReplace();
return (MyCertificateRep) obj;
|
public java.util.Set | getCriticalExtensionOIDs()
return null;
|
public byte[] | getEncoded()Returns MyCertificate encoding
// do copy to force NPE in test
return encoding.clone();
|
public byte[] | getExtensionValue(java.lang.String oid)
return null;
|
public java.util.Set | getNonCriticalExtensionOIDs()
return null;
|
public java.security.PublicKey | getPublicKey()Returns public key (stub) from MyCertificate object
return new PublicKey() {
private static final long serialVersionUID = 788077928335589816L;
public String getAlgorithm() {
return "TEST";
}
public byte[] getEncoded() {
return new byte[] {(byte)1, (byte)2, (byte)3};
}
public String getFormat() {
return "TEST_FORMAT";
}
};
|
public boolean | hasUnsupportedCriticalExtension()
return false;
|
public java.lang.String | toString()Returns formatted String
describing MyCertificate object
return "[My test Certificate, type: " + getType() + "]";
|
public void | verify(java.security.PublicKey key)Does nothing
|
public void | verify(java.security.PublicKey key, java.lang.String sigProvider)Does nothing
|
public java.lang.Object | writeReplace()
return super.writeReplace();
|