public class BundleValidator extends Object
| Constructor and Description |
|---|
BundleValidator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBundle(Bundle bundle)
Checks if a bundle is syntactically valid.
|
static boolean |
isBundle(Bundle bundle,
Optional<SpongeFactory.Mode> customCurlMode)
Checks if a bundle is syntactically valid.
|
static boolean |
validateSignatures(Bundle bundle,
ICurl customCurl)
Validates all signatures of a bundle
|
public static boolean validateSignatures(Bundle bundle, ICurl customCurl)
bundle - the bundlecustomCurl - public static boolean isBundle(Bundle bundle) throws ArgumentException
bundle - the bundle to verifyArgumentException - if there is an error with the bundlepublic static boolean isBundle(Bundle bundle, Optional<SpongeFactory.Mode> customCurlMode) throws ArgumentException
bundle - the bundle to verifycustomCurlMode - ArgumentException - if there is an error with the bundleCopyright © 2019. All rights reserved.