Compartir a través de


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 getDelegatedUserTenantId()

Get the delegatedUserTenantId property: The delegated user tenant id in Azure AD.

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 setDelegatedUserTenantId(String delegatedUserTenantId)

Set the delegatedUserTenantId property: The delegated user tenant id in Azure AD.

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 an error occurs while reading the KeyInfo.

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 an error occurs while reading the KeyInfo.

getDelegatedUserTenantId

public String getDelegatedUserTenantId()

Get the delegatedUserTenantId property: The delegated user tenant id in Azure AD.

Returns:

the delegatedUserTenantId value.

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.

setDelegatedUserTenantId

public KeyInfo setDelegatedUserTenantId(String delegatedUserTenantId)

Set the delegatedUserTenantId property: The delegated user tenant id in Azure AD.

Parameters:

delegatedUserTenantId - the delegatedUserTenantId value to set.

Returns:

the KeyInfo object itself.

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