org.openpermis.editor.policy.view.component
Class FileSubjectFinderComponent

java.lang.Object
  extended by org.openpermis.editor.policy.view.component.FileSubjectFinderComponent
All Implemented Interfaces:
Chooser, SubjectFinderComponent

public class FileSubjectFinderComponent
extends Object
implements SubjectFinderComponent

File implementation of SubjectFinderComponent.

Since:
0.9.0

Field Summary
 
Fields inherited from interface org.openpermis.editor.policy.view.component.SubjectFinderComponent
VERIFIER
 
Constructor Summary
FileSubjectFinderComponent(ApplicationContext context)
           
 
Method Summary
 String getInfo()
          Returns human readable information about the state of this component that can be displayed in a text field.
 org.openpermis.subject.MutableSubjectFinder getMutableSubjectFinder(X509Certificate cert, PrivateKey key)
          Returns a MutableSubjectFinder.
 boolean isChoosable()
          Returns false if nothing can be chosen.
 boolean isPrepared()
          Returns if this component is prepared.
 void show(Component parent)
          Starts the chooser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSubjectFinderComponent

public FileSubjectFinderComponent(ApplicationContext context)
Since:
0.9.0
Method Detail

getMutableSubjectFinder

public org.openpermis.subject.MutableSubjectFinder getMutableSubjectFinder(X509Certificate cert,
                                                                           PrivateKey key)
Description copied from interface: SubjectFinderComponent
Returns a MutableSubjectFinder.

Specified by:
getMutableSubjectFinder in interface SubjectFinderComponent
Parameters:
cert - the certificate of the issuer.
key - the private key of the issuer used to sign the newly created certificate.
Returns:
a MutableSubjectFinder.
Since:
0.9.0

isChoosable

public boolean isChoosable()
Description copied from interface: Chooser
Returns false if nothing can be chosen. E.g. all informations are retrieved from a configuration and no graphical should be drawn.

Specified by:
isChoosable in interface Chooser
Since:
0.9.0

getInfo

public String getInfo()
Description copied from interface: Chooser
Returns human readable information about the state of this component that can be displayed in a text field.

Specified by:
getInfo in interface Chooser
Since:
0.9.0

isPrepared

public boolean isPrepared()
Description copied from interface: Chooser
Returns if this component is prepared. A component is prepared if it has all necessary information to create a mutable subject finder.

Specified by:
isPrepared in interface Chooser
Returns:
true if this component is prepared.
Since:
0.9.0

show

public void show(Component parent)
Description copied from interface: Chooser
Starts the chooser.

Specified by:
show in interface Chooser
Parameters:
parent - the parent component of the dialog.
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