com.atlassian.jira.security.auth.trustedapps
Class TrustedApplicationSyntacticValidator

java.lang.Object
  extended by com.atlassian.jira.security.auth.trustedapps.TrustedApplicationSyntacticValidator
All Implemented Interfaces:
TrustedApplicationValidator

public class TrustedApplicationSyntacticValidator
extends java.lang.Object
implements TrustedApplicationValidator

Responsible for syntactic validation of the entry of Trusted Application data.

Since:
v3.12

Constructor Summary
TrustedApplicationSyntacticValidator()
           
 
Method Summary
 boolean validate(JiraServiceContext context, I18nHelper helper, SimpleTrustedApplication application)
          Validate the details of the trusted application request.
 boolean validate(JiraServiceContext context, I18nHelper helper, java.lang.String urlString)
          Validate the details of the trusted application request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustedApplicationSyntacticValidator

public TrustedApplicationSyntacticValidator()
Method Detail

validate

public boolean validate(JiraServiceContext context,
                        I18nHelper helper,
                        java.lang.String urlString)
Validate the details of the trusted application request.

Parameters:
context - the service context that contains the error collection and the user details, must not be null
helper - so we can i18n the messages
urlString - the base urlString of the client application
Returns:
true if passed, false otherwise

validate

public boolean validate(JiraServiceContext context,
                        I18nHelper helper,
                        SimpleTrustedApplication application)
Validate the details of the trusted application request.

Specified by:
validate in interface TrustedApplicationValidator
Parameters:
context - the service context that contains the error collection and the user details, must not be null
helper - so we can i18n the messages
application - containing the details of a trustedApplication that is being edited
Returns:
true if passed, false otherwise


Copyright © 2002-2010 Atlassian. All Rights Reserved.