com.aspose.note.revision

Interfaces

Classes

com.aspose.note.revision

Class CryptoHelper



  • public class CryptoHelper
    extends Object

    The crypto helper.

    • Constructor Summary

      Constructors 
      Constructor and Description
      CryptoHelper() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void checkNode(com.aspose.ms.System.Xml.XmlTextReader reader, String namespaceUri, String localName)
      Validate the current node state
      static byte[] cloneToFit(byte[] input, int size)
      Return a copy of the array, sized to fit
      static byte[] cloneToFit(byte[] input, int size, byte pad)
      Return a copy of the array, sized to fit
      static void moveToEndElement(com.aspose.ms.System.Xml.XmlTextReader reader)
      Position the reader on the next endElement, or remain on the start element if Empty
      static void moveToNextContent(com.aspose.ms.System.Xml.XmlTextReader reader)
      Move to the next piece of Content.
      static void moveToStartElement(com.aspose.ms.System.Xml.XmlTextReader reader)
      Move to the next piece of Content, and check if it's an Element.
      static void moveToStartElement(com.aspose.ms.System.Xml.XmlTextReader reader, String namespaceUri, String localName)
      Position the reader on the next startElement
      static byte[] readBytes(com.aspose.ms.System.IO.Stream stream, int bytesToRead)
      Read a given number of bytes and fail if not all present.
      static short readInt16(com.aspose.ms.System.IO.Stream stream)
      Read an Int16.
      static int readInt32(com.aspose.ms.System.IO.Stream stream)
      Read an Int32.
      static long readInt64(com.aspose.ms.System.IO.Stream stream)
      Read an Int64.
      static void transformInPlace(com.aspose.ms.System.Security.Cryptography.ICryptoTransform transform, byte[] buffer, int offset, int count)
      Perform the crypto operation in-place.
      static void writeInt16(com.aspose.ms.System.IO.Stream stream, short value)
      Write an Int16.
      static void writeInt32(com.aspose.ms.System.IO.Stream stream, int value)
      Write an Int32.
      static void writeInt64(com.aspose.ms.System.IO.Stream stream, long value)
      Write an Int64.
    • Constructor Detail

      • CryptoHelper

        public CryptoHelper()
    • Method Detail

      • cloneToFit

        public static byte[] cloneToFit(byte[] input,
                                        int size)

        Return a copy of the array, sized to fit

      • cloneToFit

        public static byte[] cloneToFit(byte[] input,
                                        int size,
                                        byte pad)

        Return a copy of the array, sized to fit

      • readBytes

        public static byte[] readBytes(com.aspose.ms.System.IO.Stream stream,
                                       int bytesToRead)

        Read a given number of bytes and fail if not all present.

      • readInt16

        public static short readInt16(com.aspose.ms.System.IO.Stream stream)

        Read an Int16.

      • readInt32

        public static int readInt32(com.aspose.ms.System.IO.Stream stream)

        Read an Int32.

      • readInt64

        public static long readInt64(com.aspose.ms.System.IO.Stream stream)

        Read an Int64.

      • writeInt16

        public static void writeInt16(com.aspose.ms.System.IO.Stream stream,
                                      short value)

        Write an Int16.

      • writeInt32

        public static void writeInt32(com.aspose.ms.System.IO.Stream stream,
                                      int value)

        Write an Int32.

      • writeInt64

        public static void writeInt64(com.aspose.ms.System.IO.Stream stream,
                                      long value)

        Write an Int64.

      • transformInPlace

        public static void transformInPlace(com.aspose.ms.System.Security.Cryptography.ICryptoTransform transform,
                                            byte[] buffer,
                                            int offset,
                                            int count)

        Perform the crypto operation in-place.

      • moveToStartElement

        public static void moveToStartElement(com.aspose.ms.System.Xml.XmlTextReader reader)

        Move to the next piece of Content, and check if it's an Element.

      • moveToNextContent

        public static void moveToNextContent(com.aspose.ms.System.Xml.XmlTextReader reader)

        Move to the next piece of Content.

      • moveToStartElement

        public static void moveToStartElement(com.aspose.ms.System.Xml.XmlTextReader reader,
                                              String namespaceUri,
                                              String localName)

        Position the reader on the next startElement

      • moveToEndElement

        public static void moveToEndElement(com.aspose.ms.System.Xml.XmlTextReader reader)

        Position the reader on the next endElement, or remain on the start element if Empty

      • checkNode

        public static void checkNode(com.aspose.ms.System.Xml.XmlTextReader reader,
                                     String namespaceUri,
                                     String localName)

        Validate the current node state