Class ResolverHelper
- java.lang.Object
-
- net.shibboleth.oidc.metadata.impl.ResolverHelper
-
public final class ResolverHelper extends Object
Helper methods for (OIDC) metadata resolution classes. Based onFilesystemMetadataResolverand its parent classes.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateResolverHelper()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]inputstreamToByteArray(InputStream ins)Converts an InputStream into a byte array.static voidvalidateMetadataFile(File file)Validate the basic properties of the specified metadata file, for example that it exists; that it is a file; and that it is readable.
-
-
-
Method Detail
-
inputstreamToByteArray
public static byte[] inputstreamToByteArray(@Nonnull InputStream ins) throws ResolverExceptionConverts an InputStream into a byte array.- Parameters:
ins- input stream to convert- Returns:
- resultant byte array
- Throws:
ResolverException- thrown if there is a problem reading the resultant byte array
-
validateMetadataFile
public static void validateMetadataFile(@Nonnull File file) throws ResolverExceptionValidate the basic properties of the specified metadata file, for example that it exists; that it is a file; and that it is readable.- Parameters:
file- the file to evaluate- Throws:
ResolverException- if file does not pass basic properties required of a metadata file
-
-