es.caib.signatura.impl
Class SignaturaProperties

java.lang.Object
  extended by es.caib.signatura.impl.SignaturaProperties

public class SignaturaProperties
extends java.lang.Object

Author:
u07286 TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
SignaturaProperties()
          Deprecated.  
SignaturaProperties(java.util.Map signerConfiguration)
          Initializes properties that come packaged with the application
SignaturaProperties(java.lang.String updateSite, java.net.URL configurationFile, java.lang.String propertiesCachePath)
          Initializes properties from a configurationFileURL and auto updates them.
 
Method Summary
 boolean enDesenvolupament()
           
 java.lang.String[] getAdvancedPolicies()
           
 java.lang.String[] getAmbigousPoliciess()
           
 void getCacheProperties()
           
 java.lang.String getCertificateParser(java.lang.String id)
           
 java.lang.String[] getPKCS11Drivers()
           
 java.lang.String getPKCS11DriversDescription(java.lang.String library)
           
protected  java.lang.String getProperty(java.lang.String name)
           
 java.lang.String[] getPublicEmployeeOID()
           
 java.lang.String getPublicEmployeeParser()
           
 java.lang.String[] getRecognizedExtensions()
           
 java.lang.String[] getRecognizedPolicies()
           
 java.lang.String[] getRecognizedSecureDevicePolicies()
           
 java.lang.String[] getRootCAs()
           
 java.lang.String getTimestampService(java.lang.String principalName)
           
 java.lang.String getTimestampServiceApplicationId(java.lang.String principalName)
           
 java.lang.String getTimestampServicePolicyOID(java.lang.String name)
           
 void getUpdateSite()
           
 void getUserProperties(java.util.Map userProperties)
           
 void getWWWProperties()
           
 boolean needsAdvancedSignature(java.lang.String contentType)
           
 boolean needsRawSignature(java.lang.String contentType)
          Comprova si un contentType fa servir signatura del document original.
 boolean needsRecognizedCertificate(java.lang.String contentType)
           
 boolean needsTimeStamp(java.lang.String contentType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignaturaProperties

public SignaturaProperties()
                    throws java.io.FileNotFoundException,
                           java.io.IOException
Deprecated. 

Do not use this method, it's for legacy applications. Use others constructors instead.

Throws:
java.io.FileNotFoundException
java.io.IOException

SignaturaProperties

public SignaturaProperties(java.util.Map signerConfiguration)
                    throws java.io.FileNotFoundException,
                           java.io.IOException
Initializes properties that come packaged with the application

Parameters:
signerConfiguration -
Throws:
java.io.FileNotFoundException
java.io.IOException

SignaturaProperties

public SignaturaProperties(java.lang.String updateSite,
                           java.net.URL configurationFile,
                           java.lang.String propertiesCachePath)
Initializes properties from a configurationFileURL and auto updates them. When newer config found in the configurationFileURL they are stored at ${user.home}/.signaturacaib/${propertiesCachePath}

Parameters:
updateSite -
configurationFile -
propertiesCachePath -
Method Detail

getCacheProperties

public void getCacheProperties()

getWWWProperties

public void getWWWProperties()

getUserProperties

public void getUserProperties(java.util.Map userProperties)
                       throws java.io.IOException
Throws:
java.io.IOException

getProperty

protected java.lang.String getProperty(java.lang.String name)

needsRecognizedCertificate

public boolean needsRecognizedCertificate(java.lang.String contentType)

needsTimeStamp

public boolean needsTimeStamp(java.lang.String contentType)

needsRawSignature

public boolean needsRawSignature(java.lang.String contentType)
Comprova si un contentType fa servir signatura del document original. Es llegeix un tercer parámetre en la llista de propietats del content type. Si aquest tercer parámetre es RAW, retorna cert. Si aquest tercer parámetre no hi és o te un valor diferent, retorna false.


needsAdvancedSignature

public boolean needsAdvancedSignature(java.lang.String contentType)
                               throws SignatureSignException
Throws:
SignatureSignException

enDesenvolupament

public boolean enDesenvolupament()

getTimestampService

public java.lang.String getTimestampService(java.lang.String principalName)

getTimestampServiceApplicationId

public java.lang.String getTimestampServiceApplicationId(java.lang.String principalName)

getTimestampServicePolicyOID

public java.lang.String getTimestampServicePolicyOID(java.lang.String name)

getRecognizedPolicies

public java.lang.String[] getRecognizedPolicies()

getRecognizedSecureDevicePolicies

public java.lang.String[] getRecognizedSecureDevicePolicies()

getAdvancedPolicies

public java.lang.String[] getAdvancedPolicies()

getRecognizedExtensions

public java.lang.String[] getRecognizedExtensions()

getAmbigousPoliciess

public java.lang.String[] getAmbigousPoliciess()

getRootCAs

public java.lang.String[] getRootCAs()

getPKCS11Drivers

public java.lang.String[] getPKCS11Drivers()

getCertificateParser

public java.lang.String getCertificateParser(java.lang.String id)

getPKCS11DriversDescription

public java.lang.String getPKCS11DriversDescription(java.lang.String library)

getUpdateSite

public void getUpdateSite()
                   throws java.io.FileNotFoundException,
                          java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

getPublicEmployeeOID

public java.lang.String[] getPublicEmployeeOID()

getPublicEmployeeParser

public java.lang.String getPublicEmployeeParser()


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.