package net.java.slee.resource.diameter.cxdx.events.avp; import net.java.slee.resource.diameter.base.events.avp.GroupedAvp; /** * <pre> * <b>6.3.36 SIP-Digest-Authenticate AVP</b> * The SIP-Digest-Authenticate is of type Grouped and it contains a reconstruction of either the * SIP WWW-Authenticate or Proxy-Authentication header fields specified in IETF RFC 2617 [14]. * * AVP format * SIP-Digest-Authenticate ::= < AVP Header: 635 10415> * { Digest-Realm } * [ Digest-Algorithm ] * { Digest-QoP } * { Digest-HA1} * *[ AVP ] * * </pre> * * @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a> * @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a> */ public interface SIPDigestAuthenticate extends GroupedAvp { /** * Returns true if the Digest-Realm AVP is present in the message. */ public boolean hasDigestRealm(); /** * Returns the value of the Digest-Realm AVP, of type UTF8String. * A return value of null implies that the AVP has not been set or some error has been encountered. */ public String getDigestRealm(); /** * Sets the value of the Digest-Realm AVP, of type UTF8String. * @throws IllegalStateException if setDigestRealm has already been called */ public void setDigestRealm(String digestRealm); /** * Returns true if the Digest-Algorithm AVP is present in the message. */ public boolean hasDigestAlgorithm(); /** * Returns the value of the Digest-Algorithm AVP, of type UTF8String. * A return value of null implies that the AVP has not been set or some error has been encountered. */ public String getDigestAlgorithm(); /** * Sets the value of the Digest-Algorithm AVP, of type UTF8String. * @throws IllegalStateException if setDigestAlgorithm has already been called */ public void setDigestAlgorithm(String digestAlgorithm); /** * Returns true if the Digest-QoP AVP is present in the message. */ public boolean hasDigestQoP(); /** * Returns the value of the Digest-QoP AVP, of type UTF8String. * A return value of null implies that the AVP has not been set or some error has been encountered. */ public String getDigestQoP(); /** * Sets the value of the Digest-QoP AVP, of type UTF8String. * @throws IllegalStateException if setDigestQoP has already been called */ public void setDigestQoP(String digestQoP); /** * Returns true if the Digest-HA1 AVP is present in the message. */ public boolean hasDigestHA1(); /** * Returns the value of the Digest-HA1 AVP, of type OctetString. * A return value of null implies that the AVP has not been set or some error has been encountered. */ public String getDigestHA1(); /** * Sets the value of the Digest-HA1 AVP, of type OctetString. * @throws IllegalStateException if setDigestHA1 has already been called */ public void setDigestHA1(String digestHA1); }