public class ProxyP11Module extends P11Module
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getDescription() |
static P11Module |
getInstance(P11ModuleConf moduleConf) |
boolean |
isReadOnly() |
void |
refresh() |
protected byte[] |
send(byte[] request) |
byte[] |
send(short action,
org.bouncycastle.asn1.ASN1Object content)
The request is constructed as follows.
|
getConf, getName, getSlot, getSlotIdForId, getSlotIdForIndex, getSlotIds, setSlotspublic static final String TYPE
public static P11Module getInstance(P11ModuleConf moduleConf) throws P11TokenException
P11TokenExceptionpublic boolean isReadOnly()
isReadOnly in class P11Modulepublic void refresh()
throws P11TokenException
P11TokenExceptionpublic String getDescription()
getDescription in class P11Moduleprotected byte[] send(byte[] request)
throws IOException
IOExceptionpublic byte[] send(short action,
org.bouncycastle.asn1.ASN1Object content)
throws P11TokenException
0 - - - 1 - - - 2 - - - 3 - - - 4 - - - 5 - - - 6 - - - 7 - - - 8 | Version | Transaction ID | Body ... | | ... Length | Action | Module ID | Content... | | .Content | <-- 10 + Length (offset).
action - actioncontent - contentP11TokenException - If error occurred.Copyright © 2018. All rights reserved.