|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sistematica.isharedoc.service.keyring.CertificateServiceImpl
@Service(value="certificateService") public class CertificateServiceImpl
Field Summary | |
---|---|
(package private) CloudManager |
cloudManager
|
(package private) it.neverworks.util.Configuration |
configuration
|
(package private) it.neverworks.data.EntityManager |
entities
|
(package private) PartitionService |
partitionService
|
(package private) org.hibernate.SessionFactory |
sessionFactory
|
(package private) it.neverworks.application.service.UserInfo |
userInfo
|
Fields inherited from interface it.sistematica.isharedoc.service.keyring.CertificateService |
---|
CA_CERT_SERIAL |
Constructor Summary | |
---|---|
CertificateServiceImpl()
|
Method Summary | |
---|---|
java.io.InputStream |
generateCACRL()
Generate cacrl. |
void |
generateCAKeyStoreAndCertificate()
Generate ca key store and certificate. |
Certificate |
generateUserCertificate(it.neverworks.security.User user,
java.security.PublicKey userPublicKey,
org.bouncycastle.asn1.x509.KeyUsage keyUsage)
Generate user certificate. |
java.security.KeyStore |
getIsharedocCAKeyStore()
Gets the isharedoc ca key store. |
java.security.PrivateKey |
getIsharedocCAPrivateKey(java.security.KeyStore rootKeyStore)
Gets the isharedoc ca private key. |
Certificate |
getIsharedocCAX509Certificate()
Gets the isharedoc ca x509 certificate. |
java.security.cert.X509Certificate |
getIsharedocCAX509Certificate(java.security.KeyStore rootKeyStore)
Gets the isharedoc ca x509 certificate. |
org.bouncycastle.asn1.x509.X509Name |
getIsharedocCAX509Name()
Gets the isharedoc ca x509 name. |
org.bouncycastle.asn1.x509.X509Name |
getUserX509Name(it.neverworks.security.User user)
Gets the user x509 name. |
void |
revokeUserCertificate(Certificate userCert,
int reason)
Revoke user certificate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
it.neverworks.application.service.UserInfo userInfo
it.neverworks.data.EntityManager entities
it.neverworks.util.Configuration configuration
PartitionService partitionService
org.hibernate.SessionFactory sessionFactory
CloudManager cloudManager
Constructor Detail |
---|
public CertificateServiceImpl()
Method Detail |
---|
public org.bouncycastle.asn1.x509.X509Name getIsharedocCAX509Name()
CertificateService
getIsharedocCAX509Name
in interface CertificateService
@Secured(value="ROLE_ADMINISTRATOR") public java.security.KeyStore getIsharedocCAKeyStore()
CertificateService
getIsharedocCAKeyStore
in interface CertificateService
@Secured(value="ROLE_ADMINISTRATOR") public java.security.cert.X509Certificate getIsharedocCAX509Certificate(java.security.KeyStore rootKeyStore)
CertificateService
getIsharedocCAX509Certificate
in interface CertificateService
rootKeyStore
- the root key store
@Secured(value="ROLE_ADMINISTRATOR") public java.security.PrivateKey getIsharedocCAPrivateKey(java.security.KeyStore rootKeyStore)
CertificateService
getIsharedocCAPrivateKey
in interface CertificateService
rootKeyStore
- the root key store
public org.bouncycastle.asn1.x509.X509Name getUserX509Name(it.neverworks.security.User user)
CertificateService
getUserX509Name
in interface CertificateService
user
- the user
@Transactional @Secured(value="ROLE_ADMINISTRATOR") public void generateCAKeyStoreAndCertificate()
CertificateService
generateCAKeyStoreAndCertificate
in interface CertificateService
public Certificate generateUserCertificate(it.neverworks.security.User user, java.security.PublicKey userPublicKey, org.bouncycastle.asn1.x509.KeyUsage keyUsage)
CertificateService
generateUserCertificate
in interface CertificateService
user
- the useruserPublicKey
- the user public keykeyUsage
- the key usage
public void revokeUserCertificate(Certificate userCert, int reason)
CertificateService
revokeUserCertificate
in interface CertificateService
userCert
- the user certreason
- the reason@Transactional public java.io.InputStream generateCACRL()
CertificateService
generateCACRL
in interface CertificateService
public Certificate getIsharedocCAX509Certificate()
CertificateService
getIsharedocCAX509Certificate
in interface CertificateService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |