| Modifier and Type | Class and Description |
|---|---|
static interface |
AVContentKeySession.Block_invalidateAllPersistableContentKeysForAppOptionsCompletionHandler |
static interface |
AVContentKeySession.Block_invalidatePersistableContentKeyOptionsCompletionHandler |
static interface |
AVContentKeySession.Block_makeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
AVContentKeySession(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addContentKeyRecipient(AVContentKeyRecipient recipient)
addContentKeyRecipient:
|
static AVContentKeySession |
alloc() |
static AVContentKeySession |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
NSArray<?> |
contentKeyRecipients()
[@property] contentKeyRecipients
|
static AVContentKeySession |
contentKeySessionWithKeySystem(java.lang.String keySystem)
contentKeySessionWithKeySystem:
|
static AVContentKeySession |
contentKeySessionWithKeySystemStorageDirectoryAtURL(java.lang.String keySystem,
NSURL storageURL)
contentKeySessionWithKeySystem:storageDirectoryAtURL:
|
NSData |
contentProtectionSessionIdentifier()
[@property] contentProtectionSessionIdentifier
|
static java.lang.String |
debugDescription_static() |
AVContentKeySessionDelegate |
delegate()
[@property] delegate
|
NSObject |
delegateQueue()
[@property] delegateQueue
|
static java.lang.String |
description_static() |
void |
expire()
expire
|
static long |
hash_static() |
AVContentKeySession |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
void |
invalidateAllPersistableContentKeysForAppOptionsCompletionHandler(NSData appIdentifier,
NSDictionary<java.lang.String,?> options,
AVContentKeySession.Block_invalidateAllPersistableContentKeysForAppOptionsCompletionHandler handler)
invalidateAllPersistableContentKeysForApp:options:completionHandler:
|
void |
invalidatePersistableContentKeyOptionsCompletionHandler(NSData persistableContentKeyData,
NSDictionary<java.lang.String,?> options,
AVContentKeySession.Block_invalidatePersistableContentKeyOptionsCompletionHandler handler)
invalidatePersistableContentKey:options:completionHandler:
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
keySystem()
[@property] keySystem
|
void |
makeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler(NSData persistableContentKeyData,
AVContentKeySession.Block_makeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler handler)
makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:
|
static AVContentKeySession |
new_objc() |
static NSArray<? extends NSData> |
pendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(NSData appIdentifier,
NSURL storageURL)
pendingExpiredSessionReportsWithAppIdentifier:storageDirectoryAtURL:
|
void |
processContentKeyRequestWithIdentifierInitializationDataOptions(java.lang.Object identifier,
NSData initializationData,
NSDictionary<java.lang.String,?> options)
processContentKeyRequestWithIdentifier:initializationData:options:
|
void |
removeContentKeyRecipient(AVContentKeyRecipient recipient)
removeContentKeyRecipient:
|
static void |
removePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(NSArray<? extends NSData> expiredSessionReports,
NSData appIdentifier,
NSURL storageURL)
removePendingExpiredSessionReports:withAppIdentifier:storageDirectoryAtURL:
|
void |
renewExpiringResponseDataForContentKeyRequest(AVContentKeyRequest contentKeyRequest)
renewExpiringResponseDataForContentKeyRequest:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setDelegateQueue(AVContentKeySessionDelegate delegate,
NSObject delegateQueue)
setDelegate:queue:
|
static void |
setVersion_static(long aVersion) |
NSURL |
storageURL()
[@property] storageURL
|
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected AVContentKeySession(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public void addContentKeyRecipient(AVContentKeyRecipient recipient)
Informs the receiver that the specified recipient will be used for the session.
It is an error to add recipient to sessions that have received an expire message. It is also an error to add recipients after they have already begun to process media data (e.g. after an AVURLAsset has loaded the values of any of its keys). Such errors will result in NSInternalInconsistencyExceptions. Sending this message to an AVContentKeySession is atomic.
public static AVContentKeySession alloc()
public static AVContentKeySession allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public NSArray<?> contentKeyRecipients()
The array of recipients of content keys currently associated with the AVContentKeySession.
public static AVContentKeySession contentKeySessionWithKeySystem(java.lang.String keySystem)
Creates a new instance of AVContentKeySession to manage a collection of media content keys.
This method returns an AVContentKeySession instance that is capable of managing collection of media content keys corresponding to the input keySystem. An NSInvalidArgumentException will be raised if the value of keySystem is unsupported.
keySystem - A valid key system for retrieving keys.public static AVContentKeySession contentKeySessionWithKeySystemStorageDirectoryAtURL(java.lang.String keySystem, NSURL storageURL)
Creates a new instance of AVContentKeySession to manage a collection of media content keys.
This method returns an AVContentKeySession instance that is capable of managing collection of media content keys corresponding to the input keySystem. An NSInvalidArgumentException will be raised if the value of keySystem is unsupported.
keySystem - A valid key system for retrieving keys.storageURL - URL to a writable directory that the session will use to facilitate expired session reports after abnormal session termination.public NSData contentProtectionSessionIdentifier()
An opaque identifier for the current content protection session.
May be nil. Will call the delegate's contentKeySessionContentProtectionSessionIdentifierDidChange: when the identifier changes. The protection session ID is a unique string identifier generated by the AVContentKeySession that can be used by the application to identify content key session objects.
public static java.lang.String debugDescription_static()
public AVContentKeySessionDelegate delegate()
The receiver's delegate.
The value of this property is an object conforming to the AVContentKeySessionDelegate protocol. The delegate is set using the setDelegate:queue: method.
public NSObject delegateQueue()
The dispatch queue on which all delegate methods will be invoked whenever processes requiring content keys are executed asynchronously.
The value of this property is a dispatch_queue_t. The queue is set using the setDelegate:queue: method.
public static java.lang.String description_static()
public void expire()
Tells the receiver to treat the session as having been intentionally and normally expired.
When an instance of AVContentKeySession receives an expire message, all of its associated objects conforming to the AVContentKeyRecipient protocol will become inoperable. Send this message only after you have finished operating on the media data.
public static long hash_static()
public AVContentKeySession init()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public java.lang.String keySystem()
The key system used for retrieving keys
public void makeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler(NSData persistableContentKeyData, AVContentKeySession.Block_makeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler handler)
Creates a secure server playback context (SPC) that the client could send to the key server to obtain an expiration date for the provided persistable content key data.
persistableContentKeyData - Persistable content key data that was previously created using -[AVContentKeyRequest persistableContentKeyFromKeyVendorResponse:options:error:] or obtained via AVContentKeySessionDelegate callback -contentKeySession:didUpdatePersistableContentKey:forContentKeyIdentifier:.handler - Once the secure token is ready, this block will be called with the token or an error describing the failure.public static AVContentKeySession new_objc()
public static NSArray<? extends NSData> pendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(NSData appIdentifier, NSURL storageURL)
Provides "expired session reports" for prior AVContentKeySessions created with the specified app identifier that have expired either normally or abnormally.
Note that no reports for sessions still in progress will be included.
appIdentifier - An opaque identifier for the application. The contents of this identifier depend on the particular protocol in use by the entity that controls the use of the media data.storageURL - URL to a directory previously used with one or more instances of AVContentKeySession for the storage of expired session reports.public void processContentKeyRequestWithIdentifierInitializationDataOptions(java.lang.Object identifier,
NSData initializationData,
NSDictionary<java.lang.String,?> options)
Informs the receiver that it should attempt to instantiate a content decryption key using the specified initialization data.
May be used to generate an AVContentKeyRequest from request initialization data already in hand, without awaiting such data during the processing of media data of an associated recipient.
identifier - Container- and protocol-specific identifier to be used to obtain a key response. Either identifier or initializationData must be non-nil. Both can be non-nil, if the content protection protocol requires both.initializationData - Container- and protocol-specific data to be used to obtain a key response. Either identifier or initializationData must be non-nil. Both can be non-nil, if the content protection protocol requires both.options - Additional information necessary to obtain the key, or nil if none. See AVContentKeyRequest*Key below.public void removeContentKeyRecipient(AVContentKeyRecipient recipient)
Informs the receiver that the specified recipient will no longer be used.
After the specified recipient is removed from the receiver it will become inoperable. Remove the recipient only after you have finished operating on the media data associated with it. Sending this message to an AVContentKeySession is atomic.
public static void removePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(NSArray<? extends NSData> expiredSessionReports, NSData appIdentifier, NSURL storageURL)
Removes expired session reports for prior AVContentKeySessions from storage. Once they have been removed, they will no longer be available via subsequent invocations of +pendingExpiredSessionReportsWithAppIdentifier:.
This method is most suitable for use only after the specified expired session reports have been sent to the entity that controls the use of the media data and the entity has acknowledged their receipt.
expiredSessionReports - An array of expired session reports to be discarded.appIdentifier - An opaque identifier for the application. The contents of this identifier depend on the particular protocol in use by the entity that controls the use of the media data.storageURL - URL to a writable folder.public void renewExpiringResponseDataForContentKeyRequest(AVContentKeyRequest contentKeyRequest)
Informs the receiver that the already provided response data for an earlier AVContentKeyRequest will imminently expire.
In response the receiver will invoke your delegate with a new content key request entreating it to renew the expiring response data, via -contentKeySession:didProvideRenewingContentKeyRequest:.
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setDelegateQueue(AVContentKeySessionDelegate delegate, NSObject delegateQueue)
Sets the receiver's delegate. A delegate is required to handle content key initialization.
delegate - An object conforming to the AVContentKeySessionDelegate protocol.delegateQueue - A dispatch queue on which delegate methods will be invoked whenever processes requiring content keys are executed asynchronously. Passing a value of nil for the delegateQueue parameter along with a non-nil value for the delegate parameter will result in an invalid argument exception.public static void setVersion_static(long aVersion)
public NSURL storageURL()
The storage URL provided when the AVContentKeySession was created. May be nil.
URL to a writable directory; may be nil. The session will use this to facilitate expired session reports after abnormal session termination.
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void invalidateAllPersistableContentKeysForAppOptionsCompletionHandler(NSData appIdentifier, NSDictionary<java.lang.String,?> options, AVContentKeySession.Block_invalidateAllPersistableContentKeysForAppOptionsCompletionHandler handler)
Invalidates all persistable content keys associated with the application and creates a secure server playback context (SPC) that the client could send to the key server to verify the outcome of invalidation request.
Once invalidated, persistable content keys cannot be used to answer key requests during later playback sessions.
appIdentifier - An opaque identifier for the application. The contents of this identifier depend on the particular protocol in use by the entity that controls the use of the media data.options - Additional information necessary to generate the server playback context, or nil if none. See AVContentKeySessionServerPlaybackContextOption for supported options.handler - Once the server playback context is ready, this block will be called with the data or an error describing the failure.public void invalidatePersistableContentKeyOptionsCompletionHandler(NSData persistableContentKeyData, NSDictionary<java.lang.String,?> options, AVContentKeySession.Block_invalidatePersistableContentKeyOptionsCompletionHandler handler)
Invalidates the persistable content key and creates a secure server playback context (SPC) that the client could send to the key server to verify the outcome of invalidation request.
Once invalidated, a persistable content key cannot be used to answer key requests during later playback sessions.
persistableContentKeyData - Persistable content key data that was previously created using -[AVContentKeyRequest persistableContentKeyFromKeyVendorResponse:options:error:] or obtained via AVContentKeySessionDelegate callback -contentKeySession:didUpdatePersistableContentKey:forContentKeyIdentifier:.options - Additional information necessary to generate the server playback context, or nil if none. See AVContentKeySessionServerPlaybackContextOption for supported options.handler - Once the server playback context is ready, this block will be called with the data or an error describing the failure.