| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final byte[] | |
| private int | |
| private static final boolean | |
| private static final Hashtable | |
| private boolean | |
| private boolean | |
| private static final String | |
| private static final int | |
| private static final int | |
| private MessageDigest | |
| private final String | |
| private final CK_MECHANISM | |
| private int | |
| private static final JavaNioAccess | |
| private P11Key | |
| private Session | |
| private PSSParameterSpec | |
| private static final int | |
| private static final int | |
| private final Token | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| protected Object | engineGetParameter(String param)
Implements abstract java. Gets the value of the specified algorithm parameter. |
| protected AlgorithmParameters | engineGetParameters()
Overrides java. Returns the parameters used with this |
| protected void | engineInitSign(PrivateKey privateKey)
Implements abstract java. Initializes this |
| protected void | engineInitVerify(PublicKey publicKey)
Implements abstract java. Initializes this |
| protected void | engineSetParameter(String param, Object value)
Implements abstract java. Sets the specified algorithm parameter to the specified value. |
| protected void | engineSetParameter(AlgorithmParameterSpec params)
Overrides java. Initializes this |
| protected byte[] | engineSign()
Implements abstract java. Returns the signature bytes of all the data updated so far. |
| protected void | engineUpdate(byte b)
Implements abstract java. Updates the data to be signed or verified using the specified byte. |
| protected void | engineUpdate(byte[] b, int ofs, int len)
Implements abstract java. Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset. |
| protected void | engineUpdate(ByteBuffer byteBuffer)
Overrides java. Updates the data to be signed or verified using the specified ByteBuffer. |
| protected boolean | engineVerify(byte[] signature)
Implements abstract java. Verifies the passed-in signature. |
| private void | |
| private static PSSParameterSpec | |
| private void | |
| private static boolean | |
| private void | |
| private void | |
| private static String |
| algorithm | back to summary |
|---|---|
| private final String algorithm | |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| bytesProcessed | back to summary |
|---|---|
| private int bytesProcessed | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| DIGEST_LENGTHS | back to summary |
|---|---|
| private static final Hashtable<String, Integer> DIGEST_LENGTHS | |
| initialized | back to summary |
|---|---|
| private boolean initialized | |
| isActive | back to summary |
|---|---|
| private boolean isActive | |
| KEY_ALGO | back to summary |
|---|---|
| private static final String KEY_ALGO | |
| M_SIGN | back to summary |
|---|---|
| private static final int M_SIGN | |
| M_VERIFY | back to summary |
|---|---|
| private static final int M_VERIFY | |
| md | back to summary |
|---|---|
| private MessageDigest md | |
| mdAlg | back to summary |
|---|---|
| private final String mdAlg | |
| mechanism | back to summary |
|---|---|
| private final CK_MECHANISM mechanism | |
| mode | back to summary |
|---|---|
| private int mode | |
| NIO_ACCESS | back to summary |
|---|---|
| private static final JavaNioAccess NIO_ACCESS | |
| p11Key | back to summary |
|---|---|
| private P11Key p11Key | |
| session | back to summary |
|---|---|
| private Session session | |
| sigParams | back to summary |
|---|---|
| private PSSParameterSpec sigParams | |
| T_DIGEST | back to summary |
|---|---|
| private static final int T_DIGEST | |
| T_UPDATE | back to summary |
|---|---|
| private static final int T_UPDATE | |
| token | back to summary |
|---|---|
| private final Token token | |
| type | back to summary |
|---|---|
| private final int type | |
| P11PSSSignature | back to summary |
|---|---|
| pack-priv P11PSSSignature(Token token, String algorithm, long mechId) throws NoSuchAlgorithmException, PKCS11Exception | |
| cancelOperation | back to summary |
|---|---|
| private void cancelOperation() | |
| checkKeySize | back to summary |
|---|---|
| private void checkKeySize(Key key) throws InvalidKeyException | |
| engineGetParameter | back to summary |
|---|---|
| protected Object engineGetParameter(String param) throws InvalidParameterException Implements abstract java. Doc from java. Gets the value of the specified algorithm parameter. This method supplies a general-purpose mechanism through which it is possible to get the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.
| |
| engineGetParameters | back to summary |
|---|---|
| protected AlgorithmParameters engineGetParameters() Overrides java. Doc from java. Returns the parameters used with this The returned parameters may be the same that were used to initialize
this However, if the signature scheme does not support returning
the parameters as
| |
| engineInitSign | back to summary |
|---|---|
| protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException Implements abstract java. Doc from java. Initializes this
| |
| engineInitVerify | back to summary |
|---|---|
| protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException Implements abstract java. Doc from java. Initializes this
| |
| engineSetParameter | back to summary |
|---|---|
| protected void engineSetParameter(String param, Object value) throws InvalidParameterException Implements abstract java. Doc from java. Sets the specified algorithm parameter to the specified value. This method supplies a general-purpose mechanism through which it is possible to set the various parameters of this object. A parameter may be any settable parameter for the algorithm, such as a parameter size, or a source of random bits for signature generation (if appropriate), or an indication of whether to perform a specific but optional computation. A uniform algorithm-specific naming scheme for each parameter is desirable but left unspecified at this time.
| |
| engineSetParameter | back to summary |
|---|---|
| protected void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException Overrides java. Doc from java. Initializes this
| |
| engineSign | back to summary |
|---|---|
| protected byte[] engineSign() throws SignatureException Implements abstract java. Doc from java. Returns the signature bytes of all the data updated so far. The format of the signature depends on the underlying signature scheme.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte b) throws SignatureException Implements abstract java. Doc from java. Updates the data to be signed or verified using the specified byte.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte[] b, int ofs, int len) throws SignatureException Implements abstract java. Doc from java. Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(ByteBuffer byteBuffer) Overrides java. Doc from java. Updates the data to be signed or verified using the specified
ByteBuffer. Processes the
| |
| engineVerify | back to summary |
|---|---|
| protected boolean engineVerify(byte[] signature) throws SignatureException Implements abstract java. Doc from java. Verifies the passed-in signature.
| |
| ensureInitialized | back to summary |
|---|---|
| private void ensureInitialized() throws SignatureException | |
| genDefaultParams | back to summary |
|---|---|
| private static PSSParameterSpec genDefaultParams(String digestAlg, P11Key key) throws SignatureException | |
| initialize | back to summary |
|---|---|
| private void initialize() throws ProviderException | |
| isDigestEqual | back to summary |
|---|---|
| private static boolean isDigestEqual(String stdAlg, String givenAlg) | |
| reset | back to summary |
|---|---|
| private void reset(boolean doCancel) | |
| setSigParams | back to summary |
|---|---|
| private void setSigParams(AlgorithmParameterSpec p) throws InvalidAlgorithmParameterException | |
| toStdName | back to summary |
|---|---|
| private static String toStdName(String givenDigestAlg) | |