次の方法で共有


KeyInfo Class

  • java.lang.Object
    • com.azure.storage.blob.models.KeyInfo

Implements

public final class KeyInfo
implements XmlSerializable<KeyInfo>

Key information.

Constructor Summary

Constructor Description
KeyInfo()

Creates an instance of KeyInfo class.

Method Summary

Modifier and Type Method and Description
static KeyInfo fromXml(XmlReader xmlReader)

Reads an instance of KeyInfo from the XmlReader.

static KeyInfo fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of KeyInfo from the XmlReader.

String getExpiry()

Get the expiry property: The date-time the key expires in ISO 8601 UTC time.

String getStart()

Get the start property: The date-time the key is active in ISO 8601 UTC time.

KeyInfo setExpiry(String expiry)

Set the expiry property: The date-time the key expires in ISO 8601 UTC time.

KeyInfo setStart(String start)

Set the start property: The date-time the key is active in ISO 8601 UTC time.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

KeyInfo

public KeyInfo()

Creates an instance of KeyInfo class.

Method Details

fromXml

public static KeyInfo fromXml(XmlReader xmlReader)

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 the deserialized XML object was missing any required properties.

fromXml

public static KeyInfo fromXml(XmlReader xmlReader, String rootElementName)

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 the deserialized XML object was missing any required properties.

getExpiry

public String getExpiry()

Get the expiry property: The date-time the key expires in ISO 8601 UTC time.

Returns:

the expiry value.

getStart

public String getStart()

Get the start property: The date-time the key is active in ISO 8601 UTC time.

Returns:

the start 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.

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.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to