at.knowcenter.wag.egov.egiz.sig
Class SignatureResponse

java.lang.Object
  extended byat.knowcenter.wag.egov.egiz.sig.SignatureResponse

public class SignatureResponse
extends Object

The response of a verification.

Author:
wlackner

Field Summary
protected  X509Cert certificate_
          The X.509 certificated parsed from the response string.
protected  String hashInputData
           
 
Constructor Summary
SignatureResponse()
           
 
Method Summary
 X509Cert getCertificate()
          Returns the X.509 certificate of this response.
 String getCertificateCheckCode()
           
 String getCertificateCheckInfo()
           
 String getHashInputData()
           
 String getPublicAuthorityCode()
          Returns the public authority code of if no code was provided.
 List getPublicProperties()
          Returns a list of Strings each stating one public property of the certificate.
 String getSignatureCheckCode()
           
 String getSignatureCheckInfo()
           
 String getSignatureManifestCheckCode()
           
 String getSignatureManifestCheckInfo()
           
 String getX509IssuerName()
           
 String getX509SerialNumber()
           
 String getX509SubjectName()
           
 boolean isPublicAuthority()
          Returns if the underlying certificate indicates public authority.
 boolean isQualifiedCertificate()
          Returns true if certificate is qualified, false if not.
 void setCertificate(X509Cert certificate)
          Sets the X.509 certificate of this response.
 void setCertificateCheckCode(String certificateCheckCode)
           
 void setCertificateCheckInfo(String certificateCheckInfo)
           
 void setHashInputData(String hashInputData)
           
 void setPublicAuthority(boolean publicAuthority)
          Sets the public authority flag.
 void setPublicAuthorityCode(String publicAuthorityCode)
          Sets the public authority code.
 void setQualifiedCertificate(boolean qualifiedCertificate)
          Sets the flag for qualified certificate.
 void setSignatureCheckCode(String signatureCheckCode)
           
 void setSignatureCheckInfo(String signatureCheckInfo)
           
 void setSignatureManifestCheckCode(String signatureManifestCheckCode)
           
 void setSignatureManifestCheckInfo(String signatureManifestCheckInfo)
           
 void setX509IssuerName(String issuerName)
           
 void setX509SerialNumber(String serialNumber)
           
 void setX509SubjectName(String subjectName)
           
 String toString()
          The toString method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

certificate_

protected X509Cert certificate_
The X.509 certificated parsed from the response string.


hashInputData

protected String hashInputData
Constructor Detail

SignatureResponse

public SignatureResponse()
Method Detail

getCertificateCheckCode

public String getCertificateCheckCode()
Returns:
Returns the certificateCheckCode.

setCertificateCheckCode

public void setCertificateCheckCode(String certificateCheckCode)
Parameters:
certificateCheckCode - The certificateCheckCode to set.

getSignatureCheckCode

public String getSignatureCheckCode()
Returns:
Returns the signatureCheckCode.

setSignatureCheckCode

public void setSignatureCheckCode(String signatureCheckCode)
Parameters:
signatureCheckCode - The signatureCheckCode to set.

getSignatureManifestCheckCode

public String getSignatureManifestCheckCode()
Returns:
Returns the signatureManifestCheckCode.

isPublicAuthority

public boolean isPublicAuthority()
Returns if the underlying certificate indicates public authority.

Returns:
if public authority, if not.

setPublicAuthority

public void setPublicAuthority(boolean publicAuthority)
Sets the public authority flag.

Parameters:
publicAuthority - The public authority flag.

getPublicAuthorityCode

public String getPublicAuthorityCode()
Returns the public authority code of if no code was provided.

Returns:
The public authority code.

setPublicAuthorityCode

public void setPublicAuthorityCode(String publicAuthorityCode)
Sets the public authority code.

Parameters:
publicAuthorityCode - The public authority code.

setSignatureManifestCheckCode

public void setSignatureManifestCheckCode(String signatureManifestCheckCode)
Parameters:
signatureManifestCheckCode - The signatureManifestCheckCode to set.

getX509IssuerName

public String getX509IssuerName()
Returns:
Returns the x509IssuerName.

setX509IssuerName

public void setX509IssuerName(String issuerName)
Parameters:
issuerName - The x509IssuerName to set.

getX509SerialNumber

public String getX509SerialNumber()
Returns:
Returns the x509SerialNumber.

setX509SerialNumber

public void setX509SerialNumber(String serialNumber)
Parameters:
serialNumber - The x509SerialNumber to set.

getX509SubjectName

public String getX509SubjectName()
Returns:
Returns the x509SubjectName.

setX509SubjectName

public void setX509SubjectName(String subjectName)
Parameters:
subjectName - The x509SubjectName to set.

getCertificateCheckInfo

public String getCertificateCheckInfo()
Returns:
Returns the certificateCheckInfo.

setCertificateCheckInfo

public void setCertificateCheckInfo(String certificateCheckInfo)
Parameters:
certificateCheckInfo - The certificateCheckInfo to set.

isQualifiedCertificate

public boolean isQualifiedCertificate()
Returns true if certificate is qualified, false if not.

Returns:
true if certificate is qualified, false if not.

setQualifiedCertificate

public void setQualifiedCertificate(boolean qualifiedCertificate)
Sets the flag for qualified certificate.

Parameters:
qualifiedCertificate - The new qualified certificate status.

getSignatureCheckInfo

public String getSignatureCheckInfo()
Returns:
Returns the signatureCheckInfo.

setSignatureCheckInfo

public void setSignatureCheckInfo(String signatureCheckInfo)
Parameters:
signatureCheckInfo - The signatureCheckInfo to set.

getSignatureManifestCheckInfo

public String getSignatureManifestCheckInfo()
Returns:
Returns the signatureManifestCheckInfo.

setSignatureManifestCheckInfo

public void setSignatureManifestCheckInfo(String signatureManifestCheckInfo)
Parameters:
signatureManifestCheckInfo - The signatureManifestCheckInfo to set.

getCertificate

public X509Cert getCertificate()
Returns the X.509 certificate of this response.

Returns:
Returns the X.509 certificate of this response.

setCertificate

public void setCertificate(X509Cert certificate)
Sets the X.509 certificate of this response.

Parameters:
certificate - The X.509 certificate to be set.

getHashInputData

public String getHashInputData()

setHashInputData

public void setHashInputData(String hashInputData)

getPublicProperties

public List getPublicProperties()
                         throws SettingNotFoundException
Returns a list of Strings each stating one public property of the certificate.

Such public properties are certificate extensions each being assigned an own OID. For example the public property "Verwaltungseigenschaft" has the OID "1.2.40.0.10.1.1.1".

This methods reads out the list of possible properties from the config file and compares these to the extensions defined on the certificate. If they match, a String containing useful information about the property is added to the list returned.

Returns:
Returns the list of Strings representing the public properties of this certificate, if any.
Throws:
SettingNotFoundException

toString

public String toString()
The toString method



Copyright © 2006-2010. All Rights Reserved.