|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSOMA.security.infrastructure.Infrastructure
Field Summary | |
static int |
CREATE_PROFILE
|
(package private) InfrastructureAddress |
directoryAddress
|
(package private) CertificateCRLList |
localCertificateCRLList
|
java.io.PrintStream |
out
|
(package private) EntrustProfile |
profile
|
static int |
RECOVER_PROFILE
|
(package private) java.lang.String |
SearchBase
|
static java.lang.String |
SearchExpression
|
Fields inherited from interface SOMA.security.infrastructure.NetAddress |
CA_IP, CA_SearchBase, DEFAULT_CA_PORT, DEFAULT_LDAP_PORT, DIR_IP |
Constructor Summary | |
Infrastructure()
Creates an new objects that rappresents an Entrust PKI |
|
Infrastructure(InfrastructureAddress directoryAddress)
|
|
Infrastructure(java.lang.String caIP,
java.lang.String dirIP)
Creates an new objects that rappresents an Entrust PKI |
|
Infrastructure(java.lang.String caIP,
java.lang.String dirIP,
boolean onLine)
Creates an new objects that rappresents an Entrust PKI |
Method Summary | |
void |
connectDirectory()
|
(package private) void |
createOrRecoverProfile(java.lang.String refnum,
java.lang.String authcode,
java.lang.String password,
EntrustProfile epf,
int signalg,
java.lang.String filename,
int mode)
|
(package private) void |
createOrRecoverProfile(java.lang.String refnum,
java.lang.String authcode,
java.lang.String password,
int signalg,
java.lang.String filename,
int mode)
Creates a new entrust profile. |
void |
doKeyUpdate(EntrustProfile profile,
int key_type,
java.lang.String filename)
|
void |
doKeyUpdate(int key_type,
java.lang.String filename)
Used to update the keys |
X509Certificate |
getCertificate(EntrustProfile epf,
java.lang.String dn,
boolean dirVer)
|
X509Certificate |
getCertificate(java.lang.String dn,
boolean dirVer)
Returns a certificate. |
CertificateCRLList |
getCertificateCRLList()
|
javax.naming.directory.DirContext |
getDirectoryContext()
|
EntrustProfile |
getEntrustProfile(EntrustProfile profile)
|
InfrastructureAddress |
getInfrastructureAddress()
This method return CA address |
boolean |
getOnLine()
This method return onLine state |
java.lang.String |
getSearchBase()
|
X509Certificate[] |
getValidCertificates(EntrustProfile epf,
java.lang.String[] dn)
|
X509Certificate[] |
getValidCertificates(java.lang.String[] dn)
Returns an array of valid certificates. |
long |
initCertificateCRLList(EntrustProfile epf,
java.lang.String[] dn)
|
long |
initCertificateCRLList(java.lang.String[] dn)
Download the certificates from the directory. |
void |
putInfrastructureAddress(InfrastructureAddress ia)
This method put CA address object |
void |
setEntrustProfile(EntrustProfile profile)
|
void |
setOnLine(boolean onLine)
This method sets the onLine parameter |
void |
setOut(java.io.PrintStream out)
|
void |
setSearchBase(java.lang.String sb)
|
boolean |
updateCertificateCRLList()
Update the certificate list and the CRL list. |
void |
updateProfile(EntrustProfile profile,
java.lang.String filename)
|
void |
updateProfile(java.lang.String filename)
Check if an update is needed and performs it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.io.PrintStream out
java.lang.String SearchBase
InfrastructureAddress directoryAddress
EntrustProfile profile
CertificateCRLList localCertificateCRLList
public static final int RECOVER_PROFILE
public static final int CREATE_PROFILE
public static final java.lang.String SearchExpression
Constructor Detail |
public Infrastructure(InfrastructureAddress directoryAddress) throws java.io.IOException, iaik.pkcs.PKCSParsingException
public Infrastructure(java.lang.String caIP, java.lang.String dirIP)
caIP
- the ip address or hostname of the entrust authority,dirIP
- the ip address or hostname of the ldap directorypublic Infrastructure(java.lang.String caIP, java.lang.String dirIP, boolean onLine)
caIP
- the ip address or hostname of the entrust authority,dirIP
- the ip address or hostname of the ldap directoryonLine
- the directory is on line.public Infrastructure()
Method Detail |
public void setEntrustProfile(EntrustProfile profile)
public EntrustProfile getEntrustProfile(EntrustProfile profile)
public void setOut(java.io.PrintStream out)
public CertificateCRLList getCertificateCRLList()
public boolean getOnLine()
public void setOnLine(boolean onLine)
onLine
- it's the new valuepublic void putInfrastructureAddress(InfrastructureAddress ia)
public InfrastructureAddress getInfrastructureAddress()
public java.lang.String getSearchBase()
public void setSearchBase(java.lang.String sb)
public javax.naming.directory.DirContext getDirectoryContext()
public void connectDirectory()
void createOrRecoverProfile(java.lang.String refnum, java.lang.String authcode, java.lang.String password, int signalg, java.lang.String filename, int mode) throws java.io.FileNotFoundException, com.entrust.security.exceptions.EntrustBaseException
refnum
- the reference number,authcode
- the authentication code,password
- the password used to protect the profile,signalg
- the signature algorithm to be used,filename
- the file where to store the profilemode
- can be either RECOVER_PROFILE or CREATE_PROFILE
java.io.FileNotFoundException
com.entrust.security.exceptions.EntrustBaseException
void createOrRecoverProfile(java.lang.String refnum, java.lang.String authcode, java.lang.String password, EntrustProfile epf, int signalg, java.lang.String filename, int mode) throws java.io.FileNotFoundException, com.entrust.security.exceptions.EntrustBaseException
java.io.FileNotFoundException
com.entrust.security.exceptions.EntrustBaseException
public void updateProfile(java.lang.String filename) throws com.entrust.security.exceptions.EntrustBaseException
filename
- the filename where to store the updated profile
com.entrust.security.exceptions.EntrustBaseException
public void updateProfile(EntrustProfile profile, java.lang.String filename) throws com.entrust.security.exceptions.EntrustBaseException
com.entrust.security.exceptions.EntrustBaseException
public void doKeyUpdate(int key_type, java.lang.String filename) throws com.entrust.security.exceptions.EntrustBaseException
com.entrust.security.exceptions.EntrustBaseException
public void doKeyUpdate(EntrustProfile profile, int key_type, java.lang.String filename) throws com.entrust.security.exceptions.EntrustBaseException
com.entrust.security.exceptions.EntrustBaseException
public X509Certificate[] getValidCertificates(java.lang.String[] dn)
dn
- the array of distinguished name for whom to verify and ....
public X509Certificate[] getValidCertificates(EntrustProfile epf, java.lang.String[] dn)
public X509Certificate getCertificate(java.lang.String dn, boolean dirVer) throws java.io.IOException, iaik.pkcs.PKCSParsingException
dn
- the array of distinguished name for whom to verify and,dirVer
- access to directory,
java.io.IOException
iaik.pkcs.PKCSParsingException
public X509Certificate getCertificate(EntrustProfile epf, java.lang.String dn, boolean dirVer) throws java.io.IOException, iaik.pkcs.PKCSParsingException
java.io.IOException
iaik.pkcs.PKCSParsingException
public long initCertificateCRLList(java.lang.String[] dn) throws java.io.IOException, iaik.pkcs.PKCSParsingException
dn
- the array of distinguish names to download,
java.io.IOException
iaik.pkcs.PKCSParsingException
public long initCertificateCRLList(EntrustProfile epf, java.lang.String[] dn) throws java.io.IOException, iaik.pkcs.PKCSParsingException
java.io.IOException
iaik.pkcs.PKCSParsingException
public boolean updateCertificateCRLList()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |