1/*2 * Copyright 2001-2009 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 *16 */17package org.apache.juddi.rmi;
1819import java.rmi.RemoteException;
20import java.rmi.server.UnicastRemoteObject;
2122import org.apache.juddi.api.impl.UDDISecurityImpl;
23import org.uddi.api_v3.AuthToken;
24import org.uddi.api_v3.DiscardAuthToken;
25import org.uddi.api_v3.GetAuthToken;
26import org.uddi.v3_service.UDDISecurityPortType;
2728/**29 * UDDISecurityPortType wrapper so it can be exposed as a service over RMI.30 * 31 * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>32 *33 */34publicclassUDDISecurityServiceextends UnicastRemoteObject implements UDDISecurityPortType {
3536privatestaticfinallong serialVersionUID = -7931578658303681458L;
37privatetransient UDDISecurityPortType security = newUDDISecurityImpl();
3839protectedUDDISecurityService(int port) throws RemoteException {
40super(port);
41 }
4243publicvoid discardAuthToken(DiscardAuthToken body)
44throws RemoteException {
45 security.discardAuthToken(body);
46 }
4748public AuthToken getAuthToken(GetAuthToken body)
49throws RemoteException {
50return security.getAuthToken(body);
51 }
5253 }