RemoteOperations.java revision 72450cb9c2ca854c6d3479832c2738196c1d3282
/**
* Copyright 2014 ForgeRock AS.
*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*/
/**
* Responsible for providing remote implementations of the SessionOperations. These
* are all moved from {@link Session}. Importantly they use the SessionRequest PLL
* mechanism for performing these operations.
*/
public class RemoteOperations implements SessionOperations {
}
/**
*
* @param session The Session to update.
* @param reset If true, then update the last modified timestamp of the Session.
* @return
* @throws SessionException
*/
if (debug.messageEnabled()) {
"Remote fetch SessionInfo for {0}\n" +
"Reset: {1}",
reset));
}
SessionResponse sres = requests.sendRequestWithRetry(session.getSessionServiceURL(), sreq, session);
}
}
}
/**
* Performs a logout operation by making a remote request based
* on the Sessions service URL.
*
* @param session Session to logout.
*/
if (debug.messageEnabled()) {
"Remote logout {0}",
}
}
/**
* Destroys the Session via the Session remote service URL.
*
* @param session Session to destroy.
* @throws SessionException
*/
if (debug.messageEnabled()) {
"Remote destroy {0}",
session));
}
false);
}
/**
* Perform a remote setProperty on the Session using the remote Service URL.
*
* {@inheritDoc}
*/
if (debug.messageEnabled()) {
"Remote setProperty {0} {1}={2}",
name,
value));
}
try {
} catch (SSOException e) {
throw new SessionException(e);
} catch (Exception e) {
throw new SessionException(e);
}
if (debug.messageEnabled()) {
+ "added admSSOToken in sreq to set "
+ "externalProtectedProperty in remote server");
}
}
}
}