Package org.gluu.oxtrust.action
Class ManageCertificateAction
- java.lang.Object
-
- org.gluu.oxtrust.action.ManageCertificateAction
-
- All Implemented Interfaces:
java.io.Serializable
@ConversationScoped @Named @Secure("#{permissionService.hasPermission(\'configuration\', \'access\')}") public class ManageCertificateAction extends java.lang.Object implements java.io.Serializable
Manages SSL certificates- Author:
- Oleksiy Tataryn, Yuriy Movchan Date: 03/03/2014
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ManageCertificateAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPublicCertificate()
void
cancel()
boolean
certPresent(java.lang.String filename)
void
certUpload(org.richfaces.event.FileUploadEvent event)
boolean
compare(java.lang.String fileName)
java.lang.String
generateCSR(java.lang.String fileName)
void
getCert(java.lang.String fileName)
Fills issuer and subject maps with data about currently selected certificatevoid
getCert(TrustStoreCertificate trustStoreCertificate)
Fills issuer and subject maps with data about currently selected certificatejava.lang.String
getIdpCertFN()
java.util.HashMap<java.lang.String,java.lang.String>
getIssuer()
java.util.HashMap<java.lang.String,java.lang.String>
getSubject()
java.lang.String
getTempCertDir()
java.lang.String
getTomcatCertFN()
java.util.List<TrustStoreCertificate>
getTrustStoreCertificates()
TrustStoreConfiguration
getTrustStoreConfiguration()
java.lang.String
init()
boolean
isCertsManagePossible()
boolean
isInitialized()
void
keyUpload(org.richfaces.event.FileUploadEvent event)
void
removePublicCertificate(TrustStoreCertificate removeTrustStoreCertificate)
void
setUploadMarker(java.lang.String uploadMarker)
void
setUploadMarker(TrustStoreCertificate trustStoreCertificate)
java.lang.String
update()
-
-
-
Method Detail
-
init
public java.lang.String init()
-
getCert
public void getCert(java.lang.String fileName)
Fills issuer and subject maps with data about currently selected certificate
-
getCert
public void getCert(TrustStoreCertificate trustStoreCertificate)
Fills issuer and subject maps with data about currently selected certificate
-
generateCSR
public java.lang.String generateCSR(java.lang.String fileName) throws java.io.IOException
- Throws:
java.io.IOException
-
compare
public boolean compare(java.lang.String fileName)
-
certPresent
public boolean certPresent(java.lang.String filename)
-
getIdpCertFN
public java.lang.String getIdpCertFN()
-
getTomcatCertFN
public java.lang.String getTomcatCertFN()
-
getTempCertDir
public java.lang.String getTempCertDir()
-
getIssuer
public java.util.HashMap<java.lang.String,java.lang.String> getIssuer()
-
getSubject
public java.util.HashMap<java.lang.String,java.lang.String> getSubject()
-
setUploadMarker
public void setUploadMarker(java.lang.String uploadMarker)
-
setUploadMarker
public void setUploadMarker(TrustStoreCertificate trustStoreCertificate)
-
update
public java.lang.String update()
-
cancel
public void cancel()
-
certUpload
public void certUpload(org.richfaces.event.FileUploadEvent event)
-
keyUpload
public void keyUpload(org.richfaces.event.FileUploadEvent event)
-
addPublicCertificate
public void addPublicCertificate()
-
removePublicCertificate
public void removePublicCertificate(TrustStoreCertificate removeTrustStoreCertificate)
-
isInitialized
public boolean isInitialized()
-
isCertsManagePossible
public boolean isCertsManagePossible()
-
getTrustStoreConfiguration
public TrustStoreConfiguration getTrustStoreConfiguration()
-
getTrustStoreCertificates
public java.util.List<TrustStoreCertificate> getTrustStoreCertificates()
-
-