Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2009, MTV Networks. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License Version 2.0. You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in writing, software distributed under the Apache License Version 2.0 is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
 
 package com.mtvnet.boxspring.crowd.osgi.soap.client;
 
 
 
 
     public OsgiSecurityServerClientImpl(ClientProperties clientProperties) {
         super(clientProperties);
         if (clientProperties instanceof ConfigAdminBackedClientPropertiesImpl) {
             ((ConfigAdminBackedClientPropertiesImplclientProperties)
                     .setSecurityServerClient(this);
         }
     }
 
     @Override
     protected SecurityServer getSecurityServer() throws RemoteException {
         // TODO Auto-generated method stub
         return super.getSecurityServer();
     }
 
     public void addAttributeToPrincipal(String principalSOAPAttribute attribute)
             ApplicationPermissionException {
         ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
         try {
             super.addAttributeToPrincipal(principalattribute);
         } finally {
             Thread.currentThread().setContextClassLoader(oldCL);
         }
     }
 
     public SOAPGroup addGroup(SOAPGroup groupthrows RemoteExceptionInvalidGroupException,
         ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
         try {
             return super.addGroup(group);
         } finally {
             Thread.currentThread().setContextClassLoader(oldCL);
         }
     }
 
     public SOAPPrincipal addPrincipal(SOAPPrincipal principalPasswordCredential credential)
         ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
         try {
             return super.addPrincipal(principalcredential);
         } finally {
             Thread.currentThread().setContextClassLoader(oldCL);
         }
     }
 
     public void addPrincipalToGroup(String principalString groupthrows RemoteException,
             ApplicationPermissionException {
         ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.addPrincipalToGroup(principalgroup);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void addPrincipalToRole(String principalString rolethrows RemoteException,
            ApplicationPermissionException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.addPrincipalToRole(principalrole);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public SOAPRole addRole(SOAPRole rolethrows RemoteException,
            ApplicationPermissionException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.addRole(role);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.authenticate();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
            PrincipalAuthenticationContext principalAuthenticationContextthrows RemoteException,
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.authenticatePrincipal(principalAuthenticationContext);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public String authenticatePrincipalSimple(String usernameString password)
            throws RemoteExceptionInvalidAuthorizationTokenException,
            ApplicationAccessDeniedException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.authenticatePrincipalSimple(usernamepassword);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public String createPrincipalToken(String usernameValidationFactor[] validationFactors)
            throws RemoteExceptionInvalidAuthorizationTokenException,
            ApplicationAccessDeniedException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.createPrincipalToken(usernamevalidationFactors);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findAllGroupNames();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findAllGroupRelationships();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findAllGroups();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public String[] findAllPrincipalNames() throws RemoteException,
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findAllPrincipalNames();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public SOAPPrincipal[] findAllPrincipals() throws RemoteException,
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findAllPrincipals();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findAllRoleNames();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findAllRoles();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public SOAPGroup findGroupByName(String namethrows RemoteException,
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findGroupByName(name);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public String[] findGroupMemberships(String principalNamethrows RemoteException,
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findGroupMemberships(principalName);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findPrincipalByName(name);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findPrincipalByToken(key);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public SOAPRole findRoleByName(String namethrows RemoteException,
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findRoleByName(name);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public String[] findRoleMemberships(String principalNamethrows RemoteException,
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.findRoleMemberships(principalName);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.getCacheTime();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.getClientProperties();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public SOAPCookieInfo getCookieInfo() throws RemoteException,
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.getCookieInfo();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.getDomain();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
            RemoteException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.getGrantedAuthorities();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void invalidateToken(String tokenthrows RemoteException,
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.invalidateToken(token);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.isCacheEnabled();
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public boolean isGroupMember(String groupString principalthrows RemoteException,
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.isGroupMember(groupprincipal);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public boolean isRoleMember(String roleString principalthrows RemoteException,
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.isRoleMember(roleprincipal);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public boolean isValidToken(String principalTokenValidationFactor[] validationFactors)
            throws RemoteExceptionInvalidAuthorizationTokenException,
            ApplicationAccessDeniedException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.isValidToken(principalTokenvalidationFactors);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void removeAttributeFromPrincipal(String principalString attribute)
            ApplicationPermissionException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.removeAttributeFromPrincipal(principalattribute);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void removeGroup(String groupthrows RemoteException,
            ApplicationPermissionException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.removeGroup(group);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void removePrincipal(String principalthrows RemoteException,
            ApplicationPermissionException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.removePrincipal(principal);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void removePrincipalFromGroup(String principalString groupthrows RemoteException,
            ApplicationPermissionException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.removePrincipalFromGroup(principalgroup);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void removePrincipalFromRole(String principalString rolethrows RemoteException,
            ApplicationPermissionException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.removePrincipalFromRole(principalrole);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.removeRole(role);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void resetPrincipalCredential(String principalthrows RemoteException,
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.resetPrincipalCredential(principal);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public SOAPGroup[] searchGroups(SearchRestriction[] searchRestrictionsthrows RemoteException,
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.searchGroups(searchRestrictions);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public SOAPPrincipal[] searchPrincipals(SearchRestriction[] searchRestrictions)
            throws RemoteExceptionInvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.searchPrincipals(searchRestrictions);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public SOAPRole[] searchRoles(SearchRestriction[] searchRestrictionsthrows RemoteException,
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            return super.searchRoles(searchRestrictions);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void updateGroup(String groupString descriptionboolean active)
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.updateGroup(groupdescriptionactive);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void updatePrincipalAttribute(String nameSOAPAttribute attribute)
            InvalidAuthorizationTokenException {
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.updatePrincipalAttribute(nameattribute);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }
    public void updatePrincipalCredential(String principalPasswordCredential credential)
        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
        try {
            super.updatePrincipalCredential(principalcredential);
        } finally {
            Thread.currentThread().setContextClassLoader(oldCL);
        }
    }

    
Method for ClientProperties object to call upon a properties update. This will result in the service object being reset.
    public void propertiesUpdated() {
         = null;
    }
New to GrepCode? Check out our FAQ X