|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.util.proxy.ProxyRestrictionData
public class ProxyRestrictionData
An utility class for defining the allowed address space, used both to define the from and to restrictions.
Constructor Summary | |
---|---|
ProxyRestrictionData(byte[] bytes)
Parses the restriction data from byte array. |
Method Summary | |
---|---|
void |
addIPAddressWithNetmask(java.lang.String address)
Adds a new IP addressSpace to the data structure. |
org.bouncycastle.asn1.x509.GeneralNames |
getGeneralNames()
Returns the GeneralNames structure of the restrictions. |
java.util.Vector<java.lang.String> |
getIPSpaces()
Returns a Vector of IP address spaces as defined in rfc 4632. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyRestrictionData(byte[] bytes) throws java.io.IOException
bytes
- The byte array to parse.
java.io.IOException
- In case there is a problem parsing the certificate.Method Detail |
---|
public void addIPAddressWithNetmask(java.lang.String address)
address
- The address space to add to the allowed ip address space.
Example of the format: 192.168.0.0/16. Which equals a
192.168.0.0 with a net mask 255.255.0.0. A single IP address
can be defined as xxx.xxx.xxx.xxx/32. public org.bouncycastle.asn1.x509.GeneralNames getGeneralNames()
public java.util.Vector<java.lang.String> getIPSpaces()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |