fi.hut.tcm.spki.impl
Class SpkiCert
java.lang.Object
|
+--java.security.cert.Certificate
|
+--fi.hut.tcm.spki.SPKICertificate
|
+--fi.hut.tcm.spki.impl.SpkiCert
- class SpkiCert
- extends SPKICertificate
- implements java.io.Serializable
SpkiCert
Our implementation of the SPKICertificate functionality.
- See Also:
- Serialized Form
Fields inherited from class java.security.cert.Certificate |
type |
Constructor Summary |
protected |
SpkiCert()
|
Methods inherited from class java.security.cert.Certificate |
getType |
Methods inherited from class java.lang.Object |
,
clone,
finalize,
getClass,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
serialVersionUID
public static final long serialVersionUID
certData
private CertData certData
signature
private Sig signature
SpkiCert
protected SpkiCert()
equals
public boolean equals(java.lang.Object other)
- Overrides:
- equals in class java.security.cert.Certificate
getEncoded
public byte[] getEncoded()
- Overrides:
- getEncoded in class java.security.cert.Certificate
getPublicKey
public java.security.PublicKey getPublicKey()
- Overrides:
- getPublicKey in class java.security.cert.Certificate
hashCode
public int hashCode()
- Overrides:
- hashCode in class java.security.cert.Certificate
toString
public java.lang.String toString()
- Overrides:
- toString in class java.security.cert.Certificate
sign
public void sign(java.security.KeyPair key)
verify
public void verify(java.security.PublicKey key)
throws java.security.cert.CertificateException,
java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.security.NoSuchProviderException,
java.security.SignatureException
- Overrides:
- verify in class java.security.cert.Certificate
verify
public void verify(java.security.PublicKey key,
java.lang.String sigProvider)
throws java.security.cert.CertificateException,
java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.security.NoSuchProviderException,
java.security.SignatureException
- Overrides:
- verify in class java.security.cert.Certificate
getVersion
public int getVersion()
- Returns the certificate version number.
- Overrides:
- getVersion in class SPKICertificate
putSequence
public void putSequence(Sequence seq)
- Sets the data and signature according to the sequence.
putCertDisplay
protected void putCertDisplay(ByteString certDisplay)
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Sets a display hint for how the SPKI certificate
is best displayed. The hint is optional and may be ignored.
The verifier of the certificate should treat the CertDisplay field as a
comment, i.e. ignore it.
- Overrides:
- putCertDisplay in class SPKICertificate
getCertDisplay
public ByteString getCertDisplay()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Gets the display hint for how the SPKI certificate
is best displayed. The hint is optional and may be ignored.
The verifier of the certificate should treat the CertDisplay field as a
comment, i.e. ignore it.
- Overrides:
- getCertDisplay in class SPKICertificate
putIssuer
protected void putIssuer(java.security.PublicKey issuer)
throws java.lang.IllegalStateException,
java.lang.NoSuchMethodException
- Overrides:
- putIssuer in class SPKICertificate
getIssuer
public java.security.PublicKey getIssuer()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- getIssuer in class SPKICertificate
putIssuerInfo
protected void putIssuerInfo(java.net.URL[] info)
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- putIssuerInfo in class SPKICertificate
getIssuerInfo
public java.net.URL[] getIssuerInfo()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- getIssuerInfo in class SPKICertificate
putSubject
protected void putSubject(java.lang.Object subject)
throws java.lang.IllegalStateException,
java.lang.NoSuchMethodException
- Overrides:
- putSubject in class SPKICertificate
getSubject
public java.lang.Object getSubject()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- getSubject in class SPKICertificate
putSubjectInfo
protected void putSubjectInfo(java.net.URL[] info)
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- putSubjectInfo in class SPKICertificate
getSubjectInfo
public java.net.URL[] getSubjectInfo()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- getSubjectInfo in class SPKICertificate
putDeleg
protected void putDeleg(boolean deleg)
throws java.lang.IllegalStateException,
java.lang.NoSuchMethodException
- Overrides:
- putDeleg in class SPKICertificate
getDeleg
public boolean getDeleg()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- getDeleg in class SPKICertificate
putValidity
protected void putValidity(Validity valid)
throws java.lang.IllegalStateException,
java.lang.NoSuchMethodException
- Overrides:
- putValidity in class SPKICertificate
getValidity
public Validity getValidity()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- getValidity in class SPKICertificate
putTag
protected void putTag(Tag tag)
throws java.lang.IllegalStateException,
java.lang.NoSuchMethodException
- Overrides:
- putTag in class SPKICertificate
getTag
public Tag getTag()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- getTag in class SPKICertificate
putComment
protected void putComment(ByteString comment)
throws java.lang.IllegalStateException,
java.lang.NoSuchMethodException
- Overrides:
- putComment in class SPKICertificate
getComment
public ByteString getComment()
throws java.lang.NoSuchFieldException,
java.lang.NoSuchMethodException
- Overrides:
- getComment in class SPKICertificate
isValid
public boolean isValid()
- Overrides:
- isValid in class SPKICertificate
writeObject
private void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
- Overrides:
- writeObject in class SPKICertificate
readObject
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Overrides:
- readObject in class SPKICertificate