|
Use of JCP site is subject to the
JCP Terms of Use and the
Oracle Privacy Policy
|
javax.microedition.sip
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
|---|---|
SipProtocolPermission(java.lang.String uri)
Creates a new SipProtocolPermission instance with the specified URI as its name. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Checks two Permission objects for equality |
java.lang.String |
getActions()
Returns the actions as a String. |
java.lang.String |
getProtocol()
Returns the protocol scheme of this SipProtocolPermission |
java.lang.String |
getURI()
Returns the URI of this SipProtocolPermission |
int |
hashCode()
Returns the hash code value for this Permission object |
boolean |
implies(java.security.Permission p)
Checks if this SipProtocolPermission object implies the specified permission. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SipProtocolPermission(java.lang.String uri)
Creates a new SipProtocolPermission instance with the specified URI as its name.
uri - the URI string.
java.lang.IllegalArgumentException - if the uri is malformed
java.lang.NullPointerException - if uri is nullPermission.getName()| Method Detail |
|---|
public java.lang.String getProtocol()
Returns the protocol scheme of this SipProtocolPermission
java.security.GCFPermissionpublic java.lang.String getURI()
Returns the URI of this SipProtocolPermission
java.security.GCFPermissionpublic boolean implies(java.security.Permission p)
Checks if this SipProtocolPermission object implies the specified permission.
Method returns true if:
p is an instance of SipProtocolPermission andp's URI equals this object's URI (Refer to the RFC3261 [1] section 25 how the URIs are constructed.)are true and if one or more of following condition is met:
p - the permission to check against.
public boolean equals(java.lang.Object object)
Checks two Permission objects for equality
Permissionpublic java.lang.String getActions()
Returns the actions as a String. Since the SipProtocolPermission does not have actions, method will always return empty string.
Permissionpublic int hashCode()
Returns the hash code value for this Permission object
Permission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||