Package org.apache.hadoop.hbase.protobuf.generated

Examples of org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos$RevokeRequest


    private RevokeRequestBuilder() {
    }

    public XKMSElement buildElement(OMElement element) throws XKMSException {
        RevokeRequest revokeRequest = new RevokeRequest();
        super.buildElement(element, revokeRequest);

        OMElement revokeKeyBindingElement = element
                .getFirstChildWithName(XKMS2Constants.Q_ELEM_REVOKE_KEY_BINDING);

        if (revokeKeyBindingElement == null) {
            throw new XKMSException("RevokeKeyBinding element not found");
        }
        revokeRequest
                .setRevokeKeyBinding((RevokeKeyBinding) RevokeKeyBindingBuilder.INSTANCE
                        .buildElement(revokeKeyBindingElement));

        if (revokeRequest.getAuthentication() == null) {
            OMElement revocationCodeElem = element
                    .getFirstChildWithName(XKMS2Constants.Q_ELEM_REVOCATION_CODE);
            if (revocationCodeElem != null) {
                revokeRequest.setRevocationCode(Base64.decode(revocationCodeElem
                        .getText()));
            } else {
                throw new XKMSException(
                        "Neither Authentication nor RevocationCode found");
            }
View Full Code Here


        super("RecoverRequestBuilderTest");
    }

    public void testBuild() throws XKMSException {
        OMElement revokeRequestElem = getResourceAsElement("T5_RevokeRequest-http.xml");
        RevokeRequest revokeRequest = (RevokeRequest) RevokeRequestBuilder.INSTANCE.buildElement(revokeRequestElem);
        assertNotNull(revokeRequest);
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos$RevokeRequest

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.