public class DiameterURI
extends java.lang.Object
"aaa://" FQDN [ port ] [ transport ] [ protocol ] ; No transport security "aaas://" FQDN [ port ] [ transport ] [ protocol ] ; Transport security used FQDN = Fully Qualified Host Name port = ":" 1*DIGIT ; One of the ports used to listen for ; incoming connections. ; If absent, the default Diameter port ; (3868) is assumed if no transport ; security is used and port 5868 when ; transport security (TLS/TCP and DTLS/SCTP) ; is used. transport = ";transport=" transport-protocol ; One of the transports used to listen ; for incoming connections. If absent, ; the default protocol is assumed to be TCP. ; UDP MUST NOT be used when the aaa-protocol ; field is set to diameter. transport-protocol = ( "tcp" / "sctp" / "udp" ) protocol = ";protocol=" aaa-protocol ; If absent, the default AAA protocol ; is diameter. aaa-protocol = ( "diameter" / "radius" / "tacacs+" ) The following are examples of valid Diameter host identities: aaa://host.example.com;transport=tcp aaa://host.example.com:6666;transport=tcp aaa://host.example.com;protocol=diameter aaa://host.example.com:6666;protocol=diameter aaa://host.example.com:6666;transport=tcp;protocol=diameter aaa://host.example.com:1813;transport=udp;protocol=radius
Modifier and Type | Field and Description |
---|---|
static int |
PROTOCOL_DIAMETER |
static int |
PROTOCOL_RADIUS |
static int |
PROTOCOL_TACACSPLUS |
static int |
TRANSPORT_SCTP |
static int |
TRANSPORT_TCP |
static int |
TRANSPORT_UDP |
Constructor and Description |
---|
DiameterURI(java.lang.String uri) |
DiameterURI(java.lang.String fqdn,
int port,
int protocol,
int transport,
boolean secure) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
byte[] |
getBytes()
Return the contents of this URI as a byte array.
|
java.lang.String |
getHostname() |
int |
getPort() |
int |
getProtocol() |
boolean |
getSecure() |
int |
getTransport() |
int |
hashCode() |
java.lang.String |
toString() |
public static final int TRANSPORT_TCP
public static final int TRANSPORT_SCTP
public static final int TRANSPORT_UDP
public static final int PROTOCOL_DIAMETER
public static final int PROTOCOL_RADIUS
public static final int PROTOCOL_TACACSPLUS
public DiameterURI(java.lang.String fqdn, int port, int protocol, int transport, boolean secure)
public DiameterURI(java.lang.String uri) throws java.net.URISyntaxException
java.net.URISyntaxException
public boolean getSecure()
public java.lang.String getHostname()
public int getPort()
public int getProtocol()
public int getTransport()
public byte[] getBytes()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object