Package com.atlassian.crowd.integration.authentication

Examples of com.atlassian.crowd.integration.authentication.AuthenticatedToken


    private static final String module = CrowdWorker.class.getName();

    protected String callAuthenticate(String user, String password) throws RemoteException {
        SecurityServerHttpBindingStub stub = getStub();
        AuthenticatedToken token = getToken(stub);

        // auth the user
        String userToken;
        try {
            userToken = stub.authenticatePrincipalSimple(token, user, password);
View Full Code Here


        return userToken;
    }

    protected UserWrapper callGetUser(String user) throws RemoteException {
        SecurityServerHttpBindingStub stub = getStub();
        AuthenticatedToken token = getToken(stub);

        SOAPPrincipal principal;
        try {
            principal = stub.findPrincipalByName(token, user);
        } catch (InvalidAuthorizationTokenException e) {
View Full Code Here

        PasswordCredential credential = new PasswordCredential();
        credential.setCredential(password);
        credential.setEncryptedCredential(false);

        SecurityServerHttpBindingStub stub = getStub();
        AuthenticatedToken token = getToken(stub);

        try {
            stub.updatePrincipalCredential(token, user, credential);
        } catch (RemoteException e) {
            Debug.logError(e, module);
View Full Code Here

TOP

Related Classes of com.atlassian.crowd.integration.authentication.AuthenticatedToken

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.