Class KeyInfo

java.lang.Object
com.azure.storage.blob.models.KeyInfo
All Implemented Interfaces:
com.azure.xml.XmlSerializable<KeyInfo>

public final class KeyInfo extends Object implements com.azure.xml.XmlSerializable<KeyInfo>
Key information.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of KeyInfo class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static KeyInfo
    fromXml(com.azure.xml.XmlReader xmlReader)
    Reads an instance of KeyInfo from the XmlReader.
    static KeyInfo
    fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName)
    Reads an instance of KeyInfo from the XmlReader.
    Get the expiry property: The date-time the key expires in ISO 8601 UTC time.
    Get the start property: The date-time the key is active in ISO 8601 UTC time.
    setExpiry(String expiry)
    Set the expiry property: The date-time the key expires in ISO 8601 UTC time.
    Set the start property: The date-time the key is active in ISO 8601 UTC time.
    com.azure.xml.XmlWriter
    toXml(com.azure.xml.XmlWriter xmlWriter)
     
    com.azure.xml.XmlWriter
    toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KeyInfo

      public KeyInfo()
      Creates an instance of KeyInfo class.
  • Method Details

    • getStart

      public String getStart()
      Get the start property: The date-time the key is active in ISO 8601 UTC time.
      Returns:
      the start value.
    • setStart

      public KeyInfo setStart(String start)
      Set the start property: The date-time the key is active in ISO 8601 UTC time.
      Parameters:
      start - the start value to set.
      Returns:
      the KeyInfo object itself.
    • getExpiry

      public String getExpiry()
      Get the expiry property: The date-time the key expires in ISO 8601 UTC time.
      Returns:
      the expiry value.
    • setExpiry

      public KeyInfo setExpiry(String expiry)
      Set the expiry property: The date-time the key expires in ISO 8601 UTC time.
      Parameters:
      expiry - the expiry value to set.
      Returns:
      the KeyInfo object itself.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<KeyInfo>
      Throws:
      XMLStreamException
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<KeyInfo>
      Throws:
      XMLStreamException
    • fromXml

      public static KeyInfo fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of KeyInfo from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of KeyInfo if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the KeyInfo.
    • fromXml

      public static KeyInfo fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of KeyInfo from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      rootElementName - Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.
      Returns:
      An instance of KeyInfo if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the KeyInfo.