Class ManifestAttributesChecker
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.manifest.ManifestAttributesChecker
-
public class ManifestAttributesChecker extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classManifestAttributesChecker.MANIFEST_ATTRIBUTES_CHECK
-
Field Summary
Fields Modifier and Type Field Description private JNLPFilefileprivate static LoggerLOGprivate SecurityDescsecurityprivate SecurityDelegatesecurityDelegateprivate JNLPClassLoader.SigningStatesigning
-
Constructor Summary
Constructors Constructor Description ManifestAttributesChecker(SecurityDesc security, JNLPFile file, JNLPClassLoader.SigningState signing, SecurityDelegate securityDelegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAll()private voidcheckApplicationLibraryAllowableCodebaseAttribute()private voidcheckCodebaseAttribute()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#codebaseprivate voidcheckEntryPoint()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html#entry_ptprivate voidcheckPermissionsAttribute()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html#permissionsprivate voidcheckTrustedOnlyAttribute()http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html#trusted_onlystatic java.util.List<ManifestAttributesChecker.MANIFEST_ATTRIBUTES_CHECK>getAttributesCheck()private static booleanisLowSecurity()private static booleanisNoneOrDefault(AppletPermissionLevel requested)private ManifestBooleanisSandboxForced()private java.lang.StringpermissionsToString()(package private) static java.net.URLstripDocbase(java.net.URL documentBase)private voidvalidateRequestedPermissionLevelMatchesManifestPermissions(AppletPermissionLevel requested, ManifestBoolean sandboxForced)
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
security
private final SecurityDesc security
-
file
private final JNLPFile file
-
signing
private final JNLPClassLoader.SigningState signing
-
securityDelegate
private final SecurityDelegate securityDelegate
-
-
Constructor Detail
-
ManifestAttributesChecker
public ManifestAttributesChecker(SecurityDesc security, JNLPFile file, JNLPClassLoader.SigningState signing, SecurityDelegate securityDelegate)
-
-
Method Detail
-
checkAll
public void checkAll() throws LaunchException- Throws:
LaunchException
-
getAttributesCheck
public static java.util.List<ManifestAttributesChecker.MANIFEST_ATTRIBUTES_CHECK> getAttributesCheck()
-
checkEntryPoint
private void checkEntryPoint() throws LaunchExceptionhttp://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html#entry_pt- Throws:
LaunchException
-
checkTrustedOnlyAttribute
private void checkTrustedOnlyAttribute() throws LaunchExceptionhttp://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html#trusted_only- Throws:
LaunchException
-
checkCodebaseAttribute
private void checkCodebaseAttribute() throws LaunchExceptionhttp://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#codebase- Throws:
LaunchException
-
checkPermissionsAttribute
private void checkPermissionsAttribute() throws LaunchExceptionhttp://docs.oracle.com/javase/7/docs/technotes/guides/jweb/security/manifest.html#permissions- Throws:
LaunchException
-
isLowSecurity
private static boolean isLowSecurity()
-
isNoneOrDefault
private static boolean isNoneOrDefault(AppletPermissionLevel requested)
-
validateRequestedPermissionLevelMatchesManifestPermissions
private void validateRequestedPermissionLevelMatchesManifestPermissions(AppletPermissionLevel requested, ManifestBoolean sandboxForced) throws LaunchException
- Throws:
LaunchException
-
checkApplicationLibraryAllowableCodebaseAttribute
private void checkApplicationLibraryAllowableCodebaseAttribute() throws LaunchException- Throws:
LaunchException
-
stripDocbase
static java.net.URL stripDocbase(java.net.URL documentBase)
-
permissionsToString
private java.lang.String permissionsToString()
-
isSandboxForced
private ManifestBoolean isSandboxForced()
-
-