Modifier and Type | Field and Description |
---|---|
private final String | |
private final CK_MECHANISM | |
private boolean | |
private final int | |
private static final JavaNioAccess | |
private byte[] | |
private P11Key | |
private Session | |
private final P11SecretKeyFactory. | |
private final Token |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
private void | |
protected byte[] | engineDoFinal()
Implements abstract javax. Completes the MAC computation and resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
protected int | engineGetMacLength()
Implements abstract javax. Returns the length of the MAC in bytes. |
protected void | engineInit(Key
the (secret) key. key, AlgorithmParameterSpec the algorithm parameters. params)Implements abstract javax. Initializes the MAC with the given (secret) key and algorithm parameters. |
protected void | engineReset()
Implements abstract javax. Resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
protected void | engineUpdate(byte
the input byte to be processed. input)Implements abstract javax. Processes the given byte. |
protected void | engineUpdate(byte[]
the input buffer. b, int the offset in ofs, int input where the input starts.the number of bytes to process. len)Implements abstract javax. Processes the first |
protected void | engineUpdate(ByteBuffer
the ByteBuffer byteBuffer)Overrides javax. Processes |
private void | |
private void | |
private void |
algorithm | back to summary |
---|---|
private final String algorithm |
ckMechanism | back to summary |
---|---|
private final CK_MECHANISM ckMechanism |
initialized | back to summary |
---|---|
private boolean initialized |
macLength | back to summary |
---|---|
private final int macLength |
NIO_ACCESS | back to summary |
---|---|
private static final JavaNioAccess NIO_ACCESS |
oneByte | back to summary |
---|---|
private byte[] oneByte |
p11Key | back to summary |
---|---|
private P11Key p11Key |
session | back to summary |
---|---|
private Session session |
svcPbeKi | back to summary |
---|---|
private final P11SecretKeyFactory. |
token | back to summary |
---|---|
private final Token token |
P11Mac | back to summary |
---|---|
pack-priv P11Mac(Token token, String algorithm, long mechanism) throws PKCS11Exception |
cancelOperation | back to summary |
---|---|
private void cancelOperation() |
engineDoFinal | back to summary |
---|---|
protected byte[] engineDoFinal() Implements abstract javax. Doc from javax. Completes the MAC computation and resets the MAC for further use, maintaining the secret key that the MAC was initialized with.
|
engineGetMacLength | back to summary |
---|---|
protected int engineGetMacLength() Implements abstract javax. Doc from javax. Returns the length of the MAC in bytes.
|
engineInit | back to summary |
---|---|
protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract javax. Doc from javax. Initializes the MAC with the given (secret) key and algorithm parameters.
|
engineReset | back to summary |
---|---|
protected void engineReset() Implements abstract javax. Doc from javax. Resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
engineUpdate | back to summary |
---|---|
protected void engineUpdate(byte input) Implements abstract javax. Doc from javax. Processes the given byte.
|
engineUpdate | back to summary |
---|---|
protected void engineUpdate(byte[] b, int ofs, int len) Implements abstract javax. Doc from javax. Processes the first
|
engineUpdate | back to summary |
---|---|
protected void engineUpdate(ByteBuffer byteBuffer) Overrides javax. Doc from javax. Processes Subclasses should consider overriding this method if they can process ByteBuffers more efficiently than byte arrays.
|
ensureInitialized | back to summary |
---|---|
private void ensureInitialized() throws PKCS11Exception |
initialize | back to summary |
---|---|
private void initialize() throws PKCS11Exception |
reset | back to summary |
---|---|
private void reset(boolean doCancel) |