java.lang.Object
java.lang.Record
org.jnetpcap.windows.PcapRmt.Auth
- Record Components:
type
- the typeusername
- the usernamepassword
- the password
- All Implemented Interfaces:
PcapRmt
- Enclosing interface:
PcapRmt
public static record PcapRmt.Auth(int type, String username, String password)
extends Record
implements PcapRmt
Remote RPCAP authentication structure.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jnetpcap.windows.PcapRmt
PcapRmt.Auth, PcapRmt.Source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.password()
Returns the value of thepassword
record component.final String
toString()
Returns a string representation of this record class.int
type()
Returns the value of thetype
record component.username()
Returns the value of theusername
record component.
-
Constructor Details
-
Auth
Instantiates a new RPCAP authentication record using PcapSrc constant.- Parameters:
type
- the typeusername
- the usernamepassword
- the password
-
Auth
Creates an instance of aAuth
record class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
type
public int type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
username
Returns the value of theusername
record component.- Returns:
- the value of the
username
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-