Interface ServerPushKeys.Storage
- All Superinterfaces:
PushKeyFiles.VapidStorage
- Enclosing class:
ServerPushKeys
Reads and writes the container as XML: the server's property factory in production, a test's own in a test. It is also the
PushKeyFiles.VapidStorage through which every VAPID key file of the server is loaded (PUSH-KEYFILES-DESIGN.md 5.2), the key file being exactly this format (K-4).- Author:
- Christopher Mindus
Method Summary
Method Details
load
Loads a container file.- Parameters:
file- The file, which exists.- Returns:
- The container.
- Throws:
IOException- For file errors.PropException- For property errors, including a file that is not a$pushcontainer.
load
Description copied from interface:PushKeyFiles.VapidStorageLoads a container file.- Specified by:
loadin interfacePushKeyFiles.VapidStorage- Parameters:
file- The file, which exists and passed the permission rule.- Returns:
- The container, never null.
- Throws:
IOException- For file errors.PropException- For property errors, including a file that is not a$pushcontainer.
save
Writes a container.- Parameters:
file- The file; its directory exists.props- The container.- Throws:
IOException- For file errors.PropException- For property errors.