Class ChapInfo
- java.lang.Object
-
- com.amazonaws.services.storagegateway.model.ChapInfo
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ChapInfo extends Object implements Serializable, Cloneable
Describes Challenge-Handshake Authentication Protocol (CHAP) information that supports authentication between your gateway and iSCSI initiators.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChapInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChapInfo
clone()
boolean
equals(Object obj)
String
getInitiatorName()
The iSCSI initiator that connects to the target.String
getSecretToAuthenticateInitiator()
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.String
getSecretToAuthenticateTarget()
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g.String
getTargetARN()
The Amazon Resource Name (ARN) of the volume.int
hashCode()
void
setInitiatorName(String initiatorName)
The iSCSI initiator that connects to the target.void
setSecretToAuthenticateInitiator(String secretToAuthenticateInitiator)
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.void
setSecretToAuthenticateTarget(String secretToAuthenticateTarget)
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g.void
setTargetARN(String targetARN)
The Amazon Resource Name (ARN) of the volume.String
toString()
Returns a string representation of this object; useful for testing and debugging.ChapInfo
withInitiatorName(String initiatorName)
The iSCSI initiator that connects to the target.ChapInfo
withSecretToAuthenticateInitiator(String secretToAuthenticateInitiator)
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.ChapInfo
withSecretToAuthenticateTarget(String secretToAuthenticateTarget)
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g.ChapInfo
withTargetARN(String targetARN)
The Amazon Resource Name (ARN) of the volume.
-
-
-
Method Detail
-
setTargetARN
public void setTargetARN(String targetARN)
The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
targetARN
- The Amazon Resource Name (ARN) of the volume.Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
getTargetARN
public String getTargetARN()
The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
-
withTargetARN
public ChapInfo withTargetARN(String targetARN)
The Amazon Resource Name (ARN) of the volume.
Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Parameters:
targetARN
- The Amazon Resource Name (ARN) of the volume.Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens (-).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSecretToAuthenticateInitiator
public void setSecretToAuthenticateInitiator(String secretToAuthenticateInitiator)
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
- Parameters:
secretToAuthenticateInitiator
- The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
-
getSecretToAuthenticateInitiator
public String getSecretToAuthenticateInitiator()
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
- Returns:
- The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
-
withSecretToAuthenticateInitiator
public ChapInfo withSecretToAuthenticateInitiator(String secretToAuthenticateInitiator)
The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
- Parameters:
secretToAuthenticateInitiator
- The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInitiatorName
public void setInitiatorName(String initiatorName)
The iSCSI initiator that connects to the target.
- Parameters:
initiatorName
- The iSCSI initiator that connects to the target.
-
getInitiatorName
public String getInitiatorName()
The iSCSI initiator that connects to the target.
- Returns:
- The iSCSI initiator that connects to the target.
-
withInitiatorName
public ChapInfo withInitiatorName(String initiatorName)
The iSCSI initiator that connects to the target.
- Parameters:
initiatorName
- The iSCSI initiator that connects to the target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSecretToAuthenticateTarget
public void setSecretToAuthenticateTarget(String secretToAuthenticateTarget)
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
- Parameters:
secretToAuthenticateTarget
- The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
-
getSecretToAuthenticateTarget
public String getSecretToAuthenticateTarget()
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
- Returns:
- The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
-
withSecretToAuthenticateTarget
public ChapInfo withSecretToAuthenticateTarget(String secretToAuthenticateTarget)
The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
- Parameters:
secretToAuthenticateTarget
- The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-