Interface RequestPolicy
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy
public interface RequestPolicy
extends org.jvnet.hk2.config.ConfigBeanProxy
Used to define the authentication policy requirements associated with the request
processing performed by an authentication provider (i.e. when a client provider's
ClientAuthModule.initiateRequest() method is called or when a server provider's
ServerAuthModule.validateRequest() method is called).-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Pattern(regexp="(before-content|after-content)",message="Valid values: (before-content|after-content)") StringSpecifies whether recipient authentication occurs before or after content authentication.@Pattern(regexp="(sender|content|username-password)",message="Valid values: (sender|content|username-password)") StringGets the value of theauthSourceproperty.voidsetAuthRecipient(String authRecipient) Sets the value of theauthRecipientproperty.voidsetAuthSource(String authSource) Sets the value of theauthSourceproperty.Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
-
Field Details
-
AUTH_RECIPIENT_TIMINGS
- See Also:
-
AUTH_SOURCES
- See Also:
-
-
Method Details
-
getAuthSource
@Pattern(regexp="(sender|content|username-password)", message="Valid values: (sender|content|username-password)") @Pattern(regexp="(sender|content|username-password)",message="Valid values: (sender|content|username-password)") String getAuthSource()Gets the value of theauthSourceproperty.Defines a requirement for message layer sender authentication (e.g. username password) or content authentication (e.g. digital signature).
- Returns:
- possible object is
String
-
setAuthSource
Sets the value of theauthSourceproperty.- Parameters:
authSource- allowed object isString- Throws:
PropertyVetoException
-
getAuthRecipient
@Pattern(regexp="(before-content|after-content)", message="Valid values: (before-content|after-content)") @Pattern(regexp="(before-content|after-content)",message="Valid values: (before-content|after-content)") String getAuthRecipient()Specifies whether recipient authentication occurs before or after content authentication.Allowed values are
before-contentandafter-content.Defines a requirement for message layer authentication of the receiver of a message to its sender (e.g. by XML encryption). before-content indicates that recipient authentication (e.g. encryption) is to occur before any content authentication (e.g. encrypt then sign) with respect to the target of the containing auth-policy. after-content indicates that recipient authentication (e.g. encryption) is to occur after any content authentication (e.g. sign then encrypt) with respect to the target of the containing auth-policy.
- Returns:
- possible object is
String
-
setAuthRecipient
Sets the value of theauthRecipientproperty.- Parameters:
authRecipient- allowed object isString- Throws:
PropertyVetoException
-