com.atlassian.crowd.openid.server.manager.site
Class ApprovalWhitelist
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApprovalWhitelist
public ApprovalWhitelist()
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.