Class SigningMediaPackageSerializer
java.lang.Object
org.opencastproject.security.urlsigning.SigningMediaPackageSerializer
- All Implemented Interfaces:
org.opencastproject.mediapackage.MediaPackageSerializer,org.osgi.service.cm.ManagedService
public class SigningMediaPackageSerializer
extends Object
implements org.opencastproject.mediapackage.MediaPackageSerializer, org.osgi.service.cm.ManagedService
Implementation of a
MediaPackageSerializer that will securely sign urls of a Mediapackage.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSigning of the URL should probably be something of the last things to do -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new and unconfigured package serializer that will not be able to perform any redirecting. -
Method Summary
Modifier and TypeMethodDescriptionprotected LongintvoidsetUrlSigningService(org.opencastproject.security.urlsigning.service.UrlSigningService urlSigningService) OSGi callback for UrlSigningServicetoString()voidunsetUrlSigningService(org.opencastproject.security.urlsigning.service.UrlSigningService urlSigningService) voidupdated(Dictionary properties) OSGi callback if properties file is present
-
Field Details
-
RANKING
public static final int RANKINGSigning of the URL should probably be something of the last things to do- See Also:
-
-
Constructor Details
-
SigningMediaPackageSerializer
public SigningMediaPackageSerializer()Creates a new and unconfigured package serializer that will not be able to perform any redirecting.
-
-
Method Details
-
setUrlSigningService
public void setUrlSigningService(org.opencastproject.security.urlsigning.service.UrlSigningService urlSigningService) OSGi callback for UrlSigningService -
unsetUrlSigningService
public void unsetUrlSigningService(org.opencastproject.security.urlsigning.service.UrlSigningService urlSigningService) -
updated
OSGi callback if properties file is present- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
org.osgi.service.cm.ConfigurationException
-
encodeURI
- Specified by:
encodeURIin interfaceorg.opencastproject.mediapackage.MediaPackageSerializer- Throws:
URISyntaxException
-
decodeURI
- Specified by:
decodeURIin interfaceorg.opencastproject.mediapackage.MediaPackageSerializer- Throws:
URISyntaxException
-
getRanking
public int getRanking()- Specified by:
getRankingin interfaceorg.opencastproject.mediapackage.MediaPackageSerializer
-
toString
-
getExpirationSeconds
-