Package system.io.packaging
Class EncryptedPackageEnvelope
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.io.packaging.EncryptedPackageEnvelope
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class EncryptedPackageEnvelope extends NetObject implements java.lang.AutoCloseable
The base .NET class managing System.IO.Packaging.EncryptedPackageEnvelope, WindowsBase, Version=5.0.15.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.See: https://docs.microsoft.com/en-us/dotnet/api/System.IO.Packaging.EncryptedPackageEnvelope
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: WindowsBase, Version=5.0.15.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: WindowsBasestatic java.lang.StringclassNameQualified class name: System.IO.Packaging.EncryptedPackageEnvelopestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description EncryptedPackageEnvelope()EncryptedPackageEnvelope(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EncryptedPackageEnvelopecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoEncryptedPackageEnvelope, a cast assert is made to check if types are compatible.voidclose()voidClose()static EncryptedPackageEnvelopeCreate(java.lang.String envelopeFileName, PublishLicense publishLicense, CryptoProvider cryptoProvider)static EncryptedPackageEnvelopeCreate(Stream envelopeStream, PublishLicense publishLicense, CryptoProvider cryptoProvider)static EncryptedPackageEnvelopeCreateFromPackage(java.lang.String envelopeFileName, Stream packageStream, PublishLicense publishLicense, CryptoProvider cryptoProvider)static EncryptedPackageEnvelopeCreateFromPackage(Stream envelopeStream, Stream packageStream, PublishLicense publishLicense, CryptoProvider cryptoProvider)voidDispose()voidFlush()FileAccessgetFileOpenAccess()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypePackageGetPackage()PackagePropertiesgetPackageProperties()RightsManagementInformationgetRightsManagementInformation()StorageInfogetStorageInfo()static booleanIsEncryptedPackageEnvelope(java.lang.String fileName)static booleanIsEncryptedPackageEnvelope(Stream stream)static EncryptedPackageEnvelopeOpen(java.lang.String envelopeFileName)static EncryptedPackageEnvelopeOpen(java.lang.String envelopeFileName, FileAccess access)static EncryptedPackageEnvelopeOpen(java.lang.String envelopeFileName, FileAccess access, FileShare sharing)static EncryptedPackageEnvelopeOpen(Stream envelopeStream)voidsetJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: WindowsBase, Version=5.0.15.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: WindowsBase- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.Packaging.EncryptedPackageEnvelope- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EncryptedPackageEnvelope
public EncryptedPackageEnvelope(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
EncryptedPackageEnvelope
public EncryptedPackageEnvelope() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static EncryptedPackageEnvelope cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoEncryptedPackageEnvelope, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
EncryptedPackageEnvelopeinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsEncryptedPackageEnvelope
public static boolean IsEncryptedPackageEnvelope(Stream stream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, OutOfMemoryException, ExternalException, SecurityException, UnauthorizedAccessException, IOException, FileFormatException, SystemException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionExternalExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionFileFormatExceptionSystemException
-
IsEncryptedPackageEnvelope
public static boolean IsEncryptedPackageEnvelope(java.lang.String fileName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, ArrayTypeMismatchException, IOException, SecurityException, FileNotFoundException, FileFormatException, OutOfMemoryException, SystemException, UnauthorizedAccessException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionIOExceptionSecurityExceptionFileNotFoundExceptionFileFormatExceptionOutOfMemoryExceptionSystemExceptionUnauthorizedAccessException
-
Create
public static EncryptedPackageEnvelope Create(Stream envelopeStream, PublishLicense publishLicense, CryptoProvider cryptoProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, CultureNotFoundException, SecurityException, IOException, FileFormatException, InvalidDataException, XmlException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionSecurityExceptionIOExceptionFileFormatExceptionInvalidDataExceptionXmlException
-
Create
public static EncryptedPackageEnvelope Create(java.lang.String envelopeFileName, PublishLicense publishLicense, CryptoProvider cryptoProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, CultureNotFoundException, IOException, FileNotFoundException, FileFormatException, InvalidDataException, XmlException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIOExceptionFileNotFoundExceptionFileFormatExceptionInvalidDataExceptionXmlException
-
CreateFromPackage
public static EncryptedPackageEnvelope CreateFromPackage(Stream envelopeStream, Stream packageStream, PublishLicense publishLicense, CryptoProvider cryptoProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, CultureNotFoundException, SecurityException, IOException, FileFormatException, InvalidDataException, XmlException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionSecurityExceptionIOExceptionFileFormatExceptionInvalidDataExceptionXmlException
-
CreateFromPackage
public static EncryptedPackageEnvelope CreateFromPackage(java.lang.String envelopeFileName, Stream packageStream, PublishLicense publishLicense, CryptoProvider cryptoProvider) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, CultureNotFoundException, IOException, FileNotFoundException, FileFormatException, InvalidDataException, XmlException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIOExceptionFileNotFoundExceptionFileFormatExceptionInvalidDataExceptionXmlException
-
Open
public static EncryptedPackageEnvelope Open(Stream envelopeStream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, CultureNotFoundException, SecurityException, IOException, FileFormatException, DirectoryNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionSecurityExceptionIOExceptionFileFormatExceptionDirectoryNotFoundException
-
Open
public static EncryptedPackageEnvelope Open(java.lang.String envelopeFileName, FileAccess access, FileShare sharing) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, CultureNotFoundException, IOException, FileNotFoundException, FileFormatException, DirectoryNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionIOExceptionFileNotFoundExceptionFileFormatExceptionDirectoryNotFoundException
-
Open
public static EncryptedPackageEnvelope Open(java.lang.String envelopeFileName, FileAccess access) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, FileNotFoundException, ObjectDisposedException, DirectoryNotFoundException, FileFormatException
- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIOExceptionFileNotFoundExceptionObjectDisposedExceptionDirectoryNotFoundExceptionFileFormatException
-
Open
public static EncryptedPackageEnvelope Open(java.lang.String envelopeFileName) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IOException, FileNotFoundException, ObjectDisposedException, DirectoryNotFoundException, FileFormatException
- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIOExceptionFileNotFoundExceptionObjectDisposedExceptionDirectoryNotFoundExceptionFileFormatException
-
GetPackage
public Package GetPackage() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException, ArgumentOutOfRangeException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, FileFormatException, NotSupportedException, InvalidDataException, XmlException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOutOfMemoryExceptionExternalExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionFileFormatExceptionNotSupportedExceptionInvalidDataExceptionXmlException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, FileFormatException, InvalidOperationException, DirectoryNotFoundException, IOException, NotSupportedException, SystemException, UnauthorizedAccessException, ArgumentOutOfRangeException, RankException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionObjectDisposedExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFileFormatExceptionInvalidOperationExceptionDirectoryNotFoundExceptionIOExceptionNotSupportedExceptionSystemExceptionUnauthorizedAccessExceptionArgumentOutOfRangeExceptionRankException
-
Dispose
public void Dispose() throws java.lang.Throwable, NotSupportedException, ArgumentNullException, ArgumentException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, FileFormatException, InvalidOperationException, DirectoryNotFoundException, IOException, SystemException, ArgumentOutOfRangeException, UnauthorizedAccessException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentNullExceptionArgumentExceptionObjectDisposedExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFileFormatExceptionInvalidOperationExceptionDirectoryNotFoundExceptionIOExceptionSystemExceptionArgumentOutOfRangeExceptionUnauthorizedAccessException
-
Flush
public void Flush() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException, IOException, FileFormatException, ArgumentOutOfRangeException, KeyNotFoundException, FormatException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, XmlException, NotSupportedException, OverflowException, SecurityException, UnauthorizedAccessException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionCultureNotFoundExceptionInvalidOperationExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOutOfMemoryExceptionExternalExceptionIOExceptionFileFormatExceptionArgumentOutOfRangeExceptionKeyNotFoundExceptionFormatExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionXmlExceptionNotSupportedExceptionOverflowExceptionSecurityExceptionUnauthorizedAccessException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getFileOpenAccess
public FileAccess getFileOpenAccess() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getPackageProperties
public PackageProperties getPackageProperties() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException, NotSupportedException
-
getRightsManagementInformation
public RightsManagementInformation getRightsManagementInformation() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
getStorageInfo
public StorageInfo getStorageInfo() throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, InvalidOperationException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ExternalException
-
-