Package xregistry.generated.AddCapabilityTokenDocument

Examples of xregistry.generated.AddCapabilityTokenDocument.AddCapabilityToken


    }

    public AddCapabilityTokenResponseDocument addCapabilityToken(AddCapabilityTokenDocument input)
            throws XregistryException {
        log.info("Request Received " + input.xmlText());
        AddCapabilityToken captoken = input.getAddCapabilityToken();

        Timestamp notBefore = new Timestamp(captoken.xgetNotbefore().getDateValue().getTime());
        Timestamp notAfter = new Timestamp(captoken.xgetNotafter().getDateValue().getTime());

        registryImpl.addCapability(findUserDN(), captoken.getResourceID(), captoken.getActor(),
                captoken.getActorType(), captoken.getAction(), captoken.getAssertions(), notBefore,
                notAfter);
        AddCapabilityTokenResponseDocument responseDocument = AddCapabilityTokenResponseDocument.Factory
                .newInstance();
        responseDocument.addNewAddCapabilityTokenResponse();
        log.info("Response: " + responseDocument.xmlText());
View Full Code Here

TOP

Related Classes of xregistry.generated.AddCapabilityTokenDocument.AddCapabilityToken

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.