[java-identity-provider COMMIT] /trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AbstractAuthenticationAct...
noreply at shibboleth.net
noreply at shibboleth.net
Tue Jan 7 13:01:44 EST 2014
Author: scantor
Date: Tue Jan 7 13:01:43 2014
New Revision: 5163
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5163&view=rev
Log:
Allow type parameters to carry through.
Modified:
trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AbstractAuthenticationAction.java
Modified: trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AbstractAuthenticationAction.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AbstractAuthenticationAction.java?rev=5163&r1=5162&r2=5163&view=diff
==============================================================================
--- trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AbstractAuthenticationAction.java (original)
+++ trunk/idp-authn-api/src/main/java/net/shibboleth/idp/authn/AbstractAuthenticationAction.java Tue Jan 7 13:01:43 2014
@@ -41,9 +41,13 @@
* Authentication action implementations should override
* {@link #doExecute(ProfileRequestContext, AuthenticationContext)}
*
+ * @param <InboundMessageType> type of in-bound message
+ * @param <OutboundMessageType> type of out-bound message
+ *
* @event {@link AuthnEventIds#INVALID_AUTHN_CTX}
*/
-public abstract class AbstractAuthenticationAction extends AbstractProfileAction {
+public abstract class AbstractAuthenticationAction<InboundMessageType, OutboundMessageType>
+ extends AbstractProfileAction<InboundMessageType, OutboundMessageType> {
/**
* Strategy used to extract, and create if necessary, the {@link AuthenticationContext} from the
@@ -72,8 +76,9 @@
/** {@inheritDoc} */
@Override
- protected final boolean doPreExecute(@Nonnull final ProfileRequestContext profileRequestContext)
- throws ProfileException {
+ protected final boolean doPreExecute(
+ @Nonnull final ProfileRequestContext<InboundMessageType, OutboundMessageType> profileRequestContext)
+ throws ProfileException {
authnContext = authnCtxLookupStrategy.apply(profileRequestContext);
if (authnContext == null) {
@@ -90,8 +95,9 @@
/** {@inheritDoc} */
@Override
- protected final void doExecute(@Nonnull final ProfileRequestContext profileRequestContext) throws ProfileException {
-
+ protected final void doExecute(
+ @Nonnull final ProfileRequestContext<InboundMessageType, OutboundMessageType> profileRequestContext)
+ throws ProfileException {
doExecute(profileRequestContext, authnContext);
}
@@ -105,7 +111,8 @@
*
* @throws AuthenticationException thrown if there is a problem performing the authentication action
*/
- protected boolean doPreExecute(@Nonnull final ProfileRequestContext profileRequestContext,
+ protected boolean doPreExecute(
+ @Nonnull final ProfileRequestContext<InboundMessageType, OutboundMessageType> profileRequestContext,
@Nonnull final AuthenticationContext authenticationContext) throws AuthenticationException {
return true;
}
@@ -118,7 +125,8 @@
*
* @throws AuthenticationException thrown if there is a problem performing the authentication action
*/
- protected void doExecute(@Nonnull final ProfileRequestContext profileRequestContext,
+ protected void doExecute(
+ @Nonnull final ProfileRequestContext<InboundMessageType, OutboundMessageType> profileRequestContext,
@Nonnull final AuthenticationContext authenticationContext) throws AuthenticationException {
throw new UnsupportedOperationException("This action is not implemented");
}
More information about the commits
mailing list