org.openpermis.editor.policy.view
Class SigningWizard
java.lang.Object
org.openpermis.editor.policy.view.WizardDialog
org.openpermis.editor.policy.view.SigningWizard
- Direct Known Subclasses:
- PolicySigningWizard, RoleAssignmentWizard
public abstract class SigningWizard
- extends WizardDialog
Base class for signing wizards.
- Since:
- 0.9.0
Methods inherited from class org.openpermis.editor.policy.view.WizardDialog |
chooseFile, close, configure, configureButton, createButtonPane, createChooser, createContentPane, createDialogContent, createDisplayTextField, createFormBuilder, createHeaderPane, createLabel, createPasswordField, focusNextComponent, getAction, getActionMap, getApplicationContext, getButtonActions, getCancelAction, getContentStyle, getDefaultButton, getDialog, getDialogTitle, getExecuteAction, getResourceMap, getTitleDescriptionKey, getTitleIconKey, getTitleTextKey, initialize, sameAction, setNextFocusComponent, show, showErrorDialog, showErrorDialog, updateActions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SigningWizard
public SigningWizard(ApplicationContext context)
- Creates a signing wizard.
- Parameters:
context
- the application context used to lookup the action and resource map.- Since:
- 0.9.0
generateAttributeCertificate
protected org.openpermis.cert.AttributeCertificate generateAttributeCertificate(X509Certificate x509Cert4Signing,
PrivateKey privateKey4Signing,
org.openpermis.cert.Attribute attribute,
X500Principal principal)
- Generates an attribute certificate for the specified key store reader and policy.
- Parameters:
x509Cert4Signing
- the X509 certificate used to sign the AC.privateKey4Signing
- the private key used to sign the AC.attribute
- the roles attribute.
- Returns:
- the attribute certificate generated,
null
in case of an error. - Since:
- 0.9.0
writeAttributeCertificate
protected boolean writeAttributeCertificate(File output,
org.openpermis.cert.AttributeCertificate ac)
- Encodes and writes an attribute certificate.
- Parameters:
output
- the output file to write to.ac
- the certificate to write.
- Returns:
true
if the output file was written, false
in case of an error.- Since:
- 0.9.0
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG