Package org.jboss.aerogear.test.container.manager

Examples of org.jboss.aerogear.test.container.manager.JBossManager$Authentication


    }

    @Override
    protected JBossManager process(Object input) throws Exception {

        JBossManager jbossManager = new JBossManager(this.configuration);

        jbossManager.start();

        return jbossManager;
    }
View Full Code Here


        try {

            RecoverRequest request = createRecoverRequest();
            request.setServiceURI(serverURL);

            Authentication authentication = new Authentication();
            Key authenKey = XKMSKeyUtil.getAuthenticationKey(passPhrase);
            authentication.setKeyBindingAuthenticationKey(authenKey);
            request.setAuthentication(authentication);

            RecoverKeyBinding keyBinding = createRecoverKeyBinding();
            keyBinding.setKeyName(alias);
View Full Code Here

        request.setId(XKMSUtil.getRamdomId());
        return request;
    }

    public static Authentication createAuthenticate() {
        Authentication authentication = new Authentication();
        return authentication;
    }
View Full Code Here

     * Prepares an KRSSRequest message for validation.
     */
    private void prepare(KRSSRequest request,
            KeyBindingAbstractType abstractType) throws XKMSException {

        Authentication authentication = request.getAuthentication();
        authentication.setKeyBindingAuthenticationKey(authkey);

        KeyInfo keyInfo = abstractType.getKeyInfo();
        if (keyInfo != null) {
            try {

View Full Code Here

    private void validate(KRSSRequest request) throws XKMSException {

        validate((MessageAbstractType) request);

        Authentication authentication = request.getAuthentication();
        XMLSignature keyBindingAuthentication = authentication
                .getKeyBindingAuthentication();

        Key keyBindingAuthenticationKey = authentication
                .getKeyBindingAuthenticationKey();
        try {
            if (!keyBindingAuthentication
                    .checkSignatureValue(keyBindingAuthenticationKey)) {
                throw new XKMSException(XKMSException.NO_AUTHENTICATION,
View Full Code Here

        OMElement authenticationElem = element
                .getFirstChildWithName(XKMS2Constants.Q_ELEM_AUTHENTICATION);
       
        if (authenticationElem != null) {
           
            Authentication authentication = new Authentication();
           
            OMElement keyBindingAuthElem = authenticationElem
                    .getFirstChildWithName(XKMS2Constants.Q_ELEM_KEY_BINDING_AUTH);

            if (keyBindingAuthElem != null) {
View Full Code Here

            KeyResolverException {
        OMElement registerRequestElem = getResourceAsElement("T1_RegisterRequest-http.xml");
        RegisterRequest registerRequest = (RegisterRequest) RegisterRequestBuilder.INSTANCE
                .buildElement(registerRequestElem);

        Authentication authentication = registerRequest.getAuthentication();
        XMLSignature keyBindingAuthentication = authentication
                .getKeyBindingAuthentication();
        assertTrue(keyBindingAuthentication.checkSignatureValue(authKey));

        PrototypeKeyBinding prototypeKeyBinding = registerRequest
                .getPrototypeKeyBinding();
View Full Code Here

    public void testBuilder() throws XKMSException, XMLSignatureException {
        OMElement recoverRequestElem = getResourceAsElement("T4_RecoverRequest-http.xml");
        RecoverRequest recoverRequest = (RecoverRequest) RecoverRequestBuilder.INSTANCE
                .buildElement(recoverRequestElem);
       
        Authentication authentication = recoverRequest.getAuthentication();
        XMLSignature keyBindingAuthentication = authentication
                .getKeyBindingAuthentication();
       
        assertTrue(keyBindingAuthentication.checkSignatureValue(authKey));
    }
View Full Code Here

        request.setId(XKMSUtil.getRamdomId());
        return request;
    }
   
    public static Authentication createAuthenticate() {
        Authentication authentication = new Authentication();
        return authentication;
    }
View Full Code Here

TOP

Related Classes of org.jboss.aerogear.test.container.manager.JBossManager$Authentication

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.