Package org.apache.cxf.xkms.model.xkms

Examples of org.apache.cxf.xkms.model.xkms.RevokeResultType


                XKMSResponseFactory.createResponse(request, new ResultType()));
    }

    @Override
    public RevokeResultType revoke(RevokeRequestType request) {
        RevokeResultType response = XKMSResponseFactory.createResponse(request, new RevokeResultType());
        try {
            assertXKRSSAllowed();
            validateRequest(request);
            for (Register handler : keyRegisterHandlers) {
                if (handler.canProcess(request)) {
View Full Code Here


    @Override
    public RevokeResultType revoke(RevokeRequestType request) {
        try {
            assertXKRSSAllowed();
            validateRequest(request);
            RevokeResultType response = XKMSResponseFactory.createResponse(request, new RevokeResultType());
            try {
                for (Register handler : keyRegisterHandlers) {
                    if (handler.canProcess(request)) {
                        return handler.revoke(request, response);
                    }
                }
                throw new UnsupportedOperationException("Service was unable to handle your request");
            } catch (Exception e) {
                LOG.log(Level.SEVERE, "Error due X509 Validation: " + e.getMessage(), e);
                return ExceptionMapper.toResponse(e, response);
            }
        } catch (Exception e) {
            return ExceptionMapper.toResponse(e, XKMSResponseFactory.createResponse(request, new RevokeResultType()));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.xkms.model.xkms.RevokeResultType

Copyright © 2018 www.massapicom. 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.