Examples of AuthorizationDeniedException


Examples of org.ejbca.core.model.authorization.AuthorizationDeniedException

    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    @Override
    public void setArchivedStatus(Admin admin, String fingerprint) throws AuthorizationDeniedException {
      if (admin.getAdminType() != Admin.TYPE_INTERNALUSER) {
        throw new AuthorizationDeniedException("Unauthorized");
      }
      CertificateData rev = CertificateData.findByFingerprint(entityManager, fingerprint);
      if (rev != null) {
        rev.setStatus(SecConst.CERT_ARCHIVED);
        if (log.isDebugEnabled()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.