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=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Packaging.EncryptedPackageEnvelope
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: WindowsBase, Version=9.0.0.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=9.0.0.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, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SecurityException, IOException, UnauthorizedAccessException, IndexOutOfRangeException, FileFormatException, FormatException, SystemException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionSecurityExceptionIOExceptionUnauthorizedAccessExceptionIndexOutOfRangeExceptionFileFormatExceptionFormatExceptionSystemException
-
IsEncryptedPackageEnvelope
public static boolean IsEncryptedPackageEnvelope(java.lang.String fileName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, IOException, SecurityException, UnauthorizedAccessException, FileNotFoundException, FileFormatException, FormatException, SystemException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionIOExceptionSecurityExceptionUnauthorizedAccessExceptionFileNotFoundExceptionFileFormatExceptionFormatExceptionSystemException
-
Create
public static EncryptedPackageEnvelope Create(Stream envelopeStream, PublishLicense publishLicense, CryptoProvider cryptoProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, PlatformNotSupportedException, CultureNotFoundException, FileFormatException, IndexOutOfRangeException, RankException, InvalidDataException, FormatException, XmlException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionSecurityExceptionIOExceptionUnauthorizedAccessExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionFileFormatExceptionIndexOutOfRangeExceptionRankExceptionInvalidDataExceptionFormatExceptionXmlExceptionKeyNotFoundException
-
Create
public static EncryptedPackageEnvelope Create(java.lang.String envelopeFileName, PublishLicense publishLicense, CryptoProvider cryptoProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, IOException, SecurityException, FileNotFoundException, ObjectDisposedException, FileFormatException, RankException, InvalidDataException, FormatException, XmlException, OutOfMemoryException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionIOExceptionSecurityExceptionFileNotFoundExceptionObjectDisposedExceptionFileFormatExceptionRankExceptionInvalidDataExceptionFormatExceptionXmlExceptionOutOfMemoryExceptionKeyNotFoundException
-
CreateFromPackage
public static EncryptedPackageEnvelope CreateFromPackage(Stream envelopeStream, Stream packageStream, PublishLicense publishLicense, CryptoProvider cryptoProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, PlatformNotSupportedException, CultureNotFoundException, FileFormatException, IndexOutOfRangeException, RankException, InvalidDataException, FormatException, XmlException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionSecurityExceptionIOExceptionUnauthorizedAccessExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionFileFormatExceptionIndexOutOfRangeExceptionRankExceptionInvalidDataExceptionFormatExceptionXmlExceptionKeyNotFoundException
-
CreateFromPackage
public static EncryptedPackageEnvelope CreateFromPackage(java.lang.String envelopeFileName, Stream packageStream, PublishLicense publishLicense, CryptoProvider cryptoProvider) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, IOException, SecurityException, FileNotFoundException, ObjectDisposedException, FileFormatException, RankException, InvalidDataException, FormatException, XmlException, OutOfMemoryException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionIOExceptionSecurityExceptionFileNotFoundExceptionObjectDisposedExceptionFileFormatExceptionRankExceptionInvalidDataExceptionFormatExceptionXmlExceptionOutOfMemoryExceptionKeyNotFoundException
-
Open
public static EncryptedPackageEnvelope Open(Stream envelopeStream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, FileFormatException, DirectoryNotFoundException, CultureNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionSecurityExceptionIOExceptionUnauthorizedAccessExceptionFileFormatExceptionDirectoryNotFoundExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionIndexOutOfRangeException
-
Open
public static EncryptedPackageEnvelope Open(java.lang.String envelopeFileName, FileAccess access, FileShare sharing) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, IOException, SecurityException, FileNotFoundException, ObjectDisposedException, FileFormatException, DirectoryNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionIOExceptionSecurityExceptionFileNotFoundExceptionObjectDisposedExceptionFileFormatExceptionDirectoryNotFoundException
-
Open
public static EncryptedPackageEnvelope Open(java.lang.String envelopeFileName, FileAccess access) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IOException, FileNotFoundException, ObjectDisposedException, InvalidOperationException, DirectoryNotFoundException, FileFormatException, ArgumentOutOfRangeException, CultureNotFoundException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionIOExceptionFileNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionDirectoryNotFoundExceptionFileFormatExceptionArgumentOutOfRangeExceptionCultureNotFoundException
-
Open
public static EncryptedPackageEnvelope Open(java.lang.String envelopeFileName) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IOException, FileNotFoundException, ObjectDisposedException, InvalidOperationException, DirectoryNotFoundException, FileFormatException, ArgumentOutOfRangeException, CultureNotFoundException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionIOExceptionFileNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionDirectoryNotFoundExceptionFileFormatExceptionArgumentOutOfRangeExceptionCultureNotFoundException
-
GetPackage
public Package GetPackage() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException, OutOfMemoryException, SecurityException, ArrayTypeMismatchException, IOException, UnauthorizedAccessException, FileFormatException, FormatException, InvalidDataException, KeyNotFoundException, XmlException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionSecurityExceptionArrayTypeMismatchExceptionIOExceptionUnauthorizedAccessExceptionFileFormatExceptionFormatExceptionInvalidDataExceptionKeyNotFoundExceptionXmlException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentException, FileFormatException, InvalidOperationException, DirectoryNotFoundException, IOException, NotSupportedException, SystemException, UnauthorizedAccessException, ArgumentOutOfRangeException, RankException- Throws:
java.lang.ThrowableArgumentNullExceptionObjectDisposedExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentExceptionFileFormatExceptionInvalidOperationExceptionDirectoryNotFoundExceptionIOExceptionNotSupportedExceptionSystemExceptionUnauthorizedAccessExceptionArgumentOutOfRangeExceptionRankException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, FileFormatException, InvalidOperationException, DirectoryNotFoundException, IOException, CultureNotFoundException, NotSupportedException, SystemException, UnauthorizedAccessException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionObjectDisposedExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionFileFormatExceptionInvalidOperationExceptionDirectoryNotFoundExceptionIOExceptionCultureNotFoundExceptionNotSupportedExceptionSystemExceptionUnauthorizedAccessException
-
Flush
public void Flush() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IOException, FileFormatException, FormatException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, XmlException, OverflowException, KeyNotFoundException, MissingMethodException, TargetInvocationException, SecurityException, UnauthorizedAccessException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionFileFormatExceptionFormatExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionXmlExceptionOverflowExceptionKeyNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionSecurityExceptionUnauthorizedAccessException
-
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, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
getPackageProperties
public PackageProperties getPackageProperties() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
getRightsManagementInformation
public RightsManagementInformation getRightsManagementInformation() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
getStorageInfo
public StorageInfo getStorageInfo() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException
-
-