com.atlassian.crowd.openid.server.manager.site
Class ApprovalWhitelist

java.lang.Object
  extended by com.atlassian.crowd.openid.server.manager.site.ApprovalWhitelist

public abstract class ApprovalWhitelist
extends Object

A set of approved URLs. This can be constant, or backed by a file, which will be re-checked as necessary to keep the contents current.


Constructor Summary
ApprovalWhitelist()
           
 
Method Summary
static ApprovalWhitelist fromResource(String resourceName)
           
static ApprovalWhitelist fromResource(String resourceName, long checkIntervalMillis)
          Construct an instance from a resource.
 boolean isAutomaticallyApproved(String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApprovalWhitelist

public ApprovalWhitelist()
Method Detail

isAutomaticallyApproved

public boolean isAutomaticallyApproved(String uri)

fromResource

public static ApprovalWhitelist fromResource(String resourceName)
                                      throws IOException
Throws:
IOException

fromResource

public static ApprovalWhitelist fromResource(String resourceName,
                                             long checkIntervalMillis)
                                      throws IOException
Construct an instance from a resource. If the resource is missing, the whitelist will be empty. If it refers to a local file, that file will be polled for changes. Otherwise, it will be read once and used.

Throws:
IOException


Copyright © 2013 Atlassian. All Rights Reserved.