public byte[] digestSecretKey(long mechanism) throws P11TokenException, XiSecurityException { slot.assertMechanismSupported(mechanism); if (LOG.isDebugEnabled()) { LOG.debug("digest secret with mechanism {}", Functions.getMechanismDescription(mechanism)); } return digestSecretKey0(mechanism); }
public byte[] digestSecretKey(long mechanism) throws P11TokenException, XiSecurityException { slot.assertMechanismSupported(mechanism); if (LOG.isDebugEnabled()) { LOG.debug("digest secret with mechanism {}", Functions.getMechanismDescription(mechanism)); } return digestSecretKey0(mechanism); }
public byte[] digestSecretKey(long mechanism) throws P11TokenException, XiSecurityException { slot.assertMechanismSupported(mechanism); if (LOG.isDebugEnabled()) { LOG.debug("digest secret with mechanism {}", Pkcs11Functions.getMechanismDesc(mechanism)); } return digestSecretKey0(mechanism); }
public byte[] sign(long mechanism, P11Params parameters, byte[] content) throws P11TokenException { ParamUtil.requireNonNull("content", content); slot.assertMechanismSupported(mechanism); if (!supportsMechanism(mechanism, parameters)) { throw new P11UnsupportedMechanismException(mechanism, id); } if (LOG.isDebugEnabled()) { LOG.debug("sign with mechanism {}", Functions.getMechanismDescription(mechanism)); } return sign0(mechanism, parameters, content); }
public byte[] sign(long mechanism, P11Params parameters, byte[] content) throws P11TokenException { Args.notNull(content, "content"); slot.assertMechanismSupported(mechanism); if (!supportsMechanism(mechanism, parameters)) { throw new P11UnsupportedMechanismException(mechanism, id); } if (LOG.isDebugEnabled()) { LOG.debug("sign with mechanism {}", Functions.getMechanismDescription(mechanism)); } return sign0(mechanism, parameters, content); }
public byte[] sign(final long mechanism, final P11Params parameters, final byte[] content) throws P11TokenException, XiSecurityException { ParamUtil.requireNonNull("content", content); slot.assertMechanismSupported(mechanism); if (!supportsMechanism(mechanism, parameters)) { throw new P11UnsupportedMechanismException(mechanism, identityId); } if (LOG.isDebugEnabled()) { LOG.debug("sign with mechanism {}", Pkcs11Functions.getMechanismDesc(mechanism)); } return sign0(mechanism, parameters, content); }
private void assertCanGenKeypair(String methodName, long mechanism, P11NewKeyControl control) throws P11UnsupportedMechanismException, P11PermissionException, P11DuplicateEntityException { ParamUtil.requireNonNull("control", control); assertWritable(methodName); assertMechanismSupported(mechanism); assertNoIdentityAndCert(control.getId(), control.getLabel()); }
private void assertCanGenKeypair(String methodName, long mechanism, P11NewKeyControl control) throws P11UnsupportedMechanismException, P11PermissionException, P11DuplicateEntityException { Args.notNull(control, "control"); assertWritable(methodName); assertMechanismSupported(mechanism); assertNoIdentityAndCert(control.getId(), control.getLabel()); }