public class RSLSettings extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RSLSettings.RSLAndPolicyFileURLPair
A RSL URL and a policy file URL.
|
| Constructor and Description |
|---|
RSLSettings(File libraryFile)
Create RSLSettings with:
- a default
ApplicationDomainTarget
- verify digest set to true |
| Modifier and Type | Method and Description |
|---|---|
void |
addRSLURLAndPolicyFileURL(String rslURL,
String policyFileURL)
Add a new RSL URL and Policy file URL.
|
ApplicationDomainTarget |
getApplicationDomain()
One of
ApplicationDomainTarget that control which domain an RSL
is loaded into. |
File |
getLibraryFile() |
List<RSLSettings.RSLAndPolicyFileURLPair> |
getRSLURLs() |
boolean |
getVerifyDigest() |
boolean |
isForceLoad() |
static boolean |
isSignedRSL(String url)
Test if the url is a signed RSL.
|
void |
setApplicationDomain(ApplicationDomainTarget applicationDomain) |
void |
setForceLoad(boolean forceLoad)
Sets a flag on the RSL so the compiler is not allowed to remove it when
the "remove unused RSLs" feature is on.
|
void |
setVerifyDigest(boolean verifyDigest)
Change the value of the verify digests flag.
|
public RSLSettings(File libraryFile)
ApplicationDomainTarget
- verify digest set to truelibraryFile - the library whose classes will be removed
from the application. May not be null.NullPointerException - if libraryFile is null.public static boolean isSignedRSL(String url)
url - url to test, the file specified by the url does not
need to exist.public boolean isForceLoad()
public void setForceLoad(boolean forceLoad)
forceLoad - true to force the RSL to be loaded at runtime, false otherwise.public List<RSLSettings.RSLAndPolicyFileURLPair> getRSLURLs()
RSLSettings.RSLAndPolicyFileURLPairpublic void addRSLURLAndPolicyFileURL(String rslURL, String policyFileURL)
rslURL - A String representing the URL to load the RSL from. May
not be null.policyFileURL - A String representing the URL to load a policy file
from. This is optional and may be null to indicate there is no policy
file.NullPointerException - if rslURL is null.public File getLibraryFile()
public void setApplicationDomain(ApplicationDomainTarget applicationDomain)
applicationDomain - the new value of the applicationDomain.public ApplicationDomainTarget getApplicationDomain()
ApplicationDomainTarget that control which domain an RSL
is loaded into.public void setVerifyDigest(boolean verifyDigest)
verifyDigest - The new value of the verify digests flag.public boolean getVerifyDigest()
Copyright © 2016 The Apache Software Foundation. All rights reserved.