public class CryptokiApplet
extends java.applet.Applet
Constructor and Description |
---|
CryptokiApplet() |
Modifier and Type | Method and Description |
---|---|
void |
addToTemplate(java.util.ArrayList<CryptokiAttribute> template,
int type,
java.lang.Object value)
Add an object attribute to the given template
|
Mechanism |
createMechanism(int ckm)
Creates an instance of the class Mechanism
|
Mechanism |
createMechanism(int ckm,
byte[] param)
Creates an instance of the class Mechanism with the given param
|
java.util.List<CryptokiAttribute> |
createTemplate()
Creates a template
|
java.lang.String |
getAppletInfo() |
Cryptoki |
getCryptoki()
Get the singleton, not attached instance of Cryptoki class
|
Cryptoki |
getCryptoki(java.lang.String cryptokiLib)
Get the singleton instance of Cryptoki class attached to the given PKCS#11 module
|
java.lang.String |
getErrorDescription(int ckr)
Gets the description for an error
|
void |
importPFX(java.lang.String password,
Session session) |
void |
importPFX(java.lang.String path,
java.lang.String password,
Session session,
java.lang.String id,
java.lang.String label) |
void |
init() |
void |
resetToken(Session session) |
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public java.lang.String getAppletInfo()
getAppletInfo
in class java.applet.Applet
public void init()
init
in class java.applet.Applet
public Cryptoki getCryptoki()
public Cryptoki getCryptoki(java.lang.String cryptokiLib)
public Mechanism createMechanism(int ckm)
ckm
- the mechanismpublic Mechanism createMechanism(int ckm, byte[] param)
ckm
- the mechanismparam
- mechanism parameterpublic java.util.List<CryptokiAttribute> createTemplate()
public void addToTemplate(java.util.ArrayList<CryptokiAttribute> template, int type, java.lang.Object value)
template
- the templatetype
- the attribute typevalue
- the attribute valuepublic java.lang.String getErrorDescription(int ckr)
ckr
- the error codepublic void importPFX(java.lang.String password, Session session)
public void importPFX(java.lang.String path, java.lang.String password, Session session, java.lang.String id, java.lang.String label)
public void resetToken(Session session)