Class ResolverHelper
java.lang.Object
net.shibboleth.oidc.metadata.impl.ResolverHelper
Helper methods for (OIDC) metadata resolution classes.
Based on
FilesystemMetadataResolver and its parent classes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]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.
-
Constructor Details
-
ResolverHelper
private ResolverHelper()Constructor.
-
-
Method Details
-
inputstreamToByteArray
Converts 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
Validate 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
-