Package org.jboss.as.clustering.web.sso

Examples of org.jboss.as.clustering.web.sso.SSOCredentials


    protected SingleSignOnEntry getSingleSignOnEntry(String ssoId) {
        SingleSignOnEntry sso = localLookup(ssoId);
        // If we don't have one locally and there is a cluster,
        // query the cluster for the SSO
        if (sso == null && ssoClusterManager != null) {
            SSOCredentials credentials = ssoClusterManager.lookup(ssoId);
            if (credentials != null) {
                sso = new SingleSignOnEntry(null, credentials.getAuthType(), credentials.getUsername(), credentials.getPassword());
                // Store it locally
                synchronized (cache) {
                    cache.put(ssoId, sso);
                }
            }
View Full Code Here


        SSOKey key = event.getKey();
        String ssoId = key.getId();

        if (key instanceof CredentialKey) {
            trace("received a credentials modified message for SSO %s", ssoId);
            SSOCredentials credentials = (SSOCredentials) event.getValue();
            if (credentials != null) {
                this.ssoValve.remoteUpdate(ssoId, credentials);
            }
        } else if (key instanceof SessionKey) {
            trace("received a session modified message for SSO %s", ssoId);
View Full Code Here

     * @param authType the type of authenticator (BASIC, CLIENT-CERT, DIGEST or FORM) used to authenticate the SSO.
     * @param username the username (if any) used for the authentication
     * @param password the password (if any) used for the authentication
     */
    private void storeCredentials(final String ssoId, String authType, String username, String password) {
        final SSOCredentials credentials = new SSOCredentials(authType, username, password);

        CredentialOperation<Void> operation = new CredentialOperation<Void>() {
            @Override
            public Void invoke(Cache<CredentialKey, SSOCredentials> cache) {
                cache.getAdvancedCache().withFlags(Flag.SKIP_REMOTE_LOOKUP).put(new CredentialKey(ssoId), credentials);
View Full Code Here

    protected SingleSignOnEntry getSingleSignOnEntry(String ssoId) {
        SingleSignOnEntry sso = localLookup(ssoId);
        // If we don't have one locally and there is a cluster,
        // query the cluster for the SSO
        if (sso == null && ssoClusterManager != null) {
            SSOCredentials credentials = ssoClusterManager.lookup(ssoId);
            if (credentials != null) {
                sso = new SingleSignOnEntry(null, credentials.getAuthType(), credentials.getUsername(), credentials.getPassword());
                // Store it locally
                synchronized (cache) {
                    cache.put(ssoId, sso);
                }
            }
View Full Code Here

    protected SingleSignOnEntry getSingleSignOnEntry(String ssoId) {
        SingleSignOnEntry sso = localLookup(ssoId);
        // If we don't have one locally and there is a cluster,
        // query the cluster for the SSO
        if (sso == null && ssoClusterManager != null) {
            SSOCredentials credentials = ssoClusterManager.lookup(ssoId);
            if (credentials != null) {
                sso = new SingleSignOnEntry(null, credentials.getAuthType(), credentials.getUsername(), credentials.getPassword());
                // Store it locally
                synchronized (cache) {
                    cache.put(ssoId, sso);
                }
            }
View Full Code Here

        String ssoId = key.getId();

        if (key instanceof CredentialKey) {
            if (log.isTraceEnabled())
                log.tracef("received a credentials modified message for SSO %s", ssoId);
            SSOCredentials credentials = (SSOCredentials) event.getValue();
            if (credentials != null) {
                this.ssoValve.remoteUpdate(ssoId, credentials);
            }
        } else if (key instanceof SessionKey) {
            if (log.isTraceEnabled())
View Full Code Here

     * @param authType the type of authenticator (BASIC, CLIENT-CERT, DIGEST or FORM) used to authenticate the SSO.
     * @param username the username (if any) used for the authentication
     * @param password the password (if any) used for the authentication
     */
    private void storeCredentials(final String ssoId, String authType, String username, String password) {
        final SSOCredentials credentials = new SSOCredentials(authType, username, password);

        CredentialOperation<Void> operation = new CredentialOperation<Void>() {
            @Override
            public Void invoke(Cache<CredentialKey, SSOCredentials> cache) {
                cache.getAdvancedCache().withFlags(Flag.SKIP_REMOTE_LOOKUP).put(new CredentialKey(ssoId), credentials);
View Full Code Here

    protected SingleSignOnEntry getSingleSignOnEntry(String ssoId) {
        SingleSignOnEntry sso = localLookup(ssoId);
        // If we don't have one locally and there is a cluster,
        // query the cluster for the SSO
        if (sso == null && ssoClusterManager != null) {
            SSOCredentials credentials = ssoClusterManager.lookup(ssoId);
            if (credentials != null) {
                sso = new SingleSignOnEntry(null, credentials.getAuthType(), credentials.getUsername(), credentials.getPassword());
                // Store it locally
                synchronized (cache) {
                    cache.put(ssoId, sso);
                }
            }
View Full Code Here

    protected SingleSignOnEntry getSingleSignOnEntry(String ssoId) {
        SingleSignOnEntry sso = localLookup(ssoId);
        // If we don't have one locally and there is a cluster,
        // query the cluster for the SSO
        if (sso == null && ssoClusterManager != null) {
            SSOCredentials credentials = ssoClusterManager.lookup(ssoId);
            if (credentials != null) {
                sso = new SingleSignOnEntry(null, credentials.getAuthType(), credentials.getUsername(), credentials.getPassword());
                // Store it locally
                synchronized (cache) {
                    cache.put(ssoId, sso);
                }
            }
View Full Code Here

        SSOKey key = event.getKey();
        String ssoId = key.getId();

        if (key instanceof CredentialKey) {
            trace("received a credentials modified message for SSO %s", ssoId);
            SSOCredentials credentials = (SSOCredentials) event.getValue();
            if (credentials != null) {
                this.ssoValve.remoteUpdate(ssoId, credentials);
            }
        } else if (key instanceof SessionKey) {
            trace("received a session modified message for SSO %s", ssoId);
View Full Code Here

TOP

Related Classes of org.jboss.as.clustering.web.sso.SSOCredentials

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.