Methods Summary |
---|
public boolean | containedIn(org.ietf.jgss.Oid[] oids)A utility method to test if this Oid value is contained within the
supplied Oid array.
for (int i = 0; i < oids.length; i++) {
if (oids[i].equals(this))
return (true);
}
return (false);
|
public boolean | equals(java.lang.Object other)Tests if two Oid objects represent the same Object identifier
value.
//check if both reference the same object
if (this == other)
return (true);
if (other instanceof Oid)
return this.oid.equals(((Oid) other).oid);
else if (other instanceof ObjectIdentifier)
return this.oid.equals(other);
else
return false;
|
public byte[] | getDER()Returns the full ASN.1 DER encoding for this oid object, which
includes the tag and length.
if (derEncoding == null) {
DerOutputStream dout = new DerOutputStream();
try {
dout.putOID(oid);
} catch (IOException e) {
throw new GSSException(GSSException.FAILURE, e.getMessage());
}
derEncoding = dout.toByteArray();
}
return derEncoding;
|
static org.ietf.jgss.Oid | getInstance(java.lang.String strOid)Only for calling by initializators used with declarations.
Oid retVal = null;
try {
retVal = new Oid(strOid);
} catch (GSSException e) {
// squelch it!
}
return retVal;
|
public int | hashCode()Returns a hashcode value for this Oid.
return oid.hashCode();
|
public java.lang.String | toString()Returns a string representation of the oid's integer components
in dot separated notation.
return oid.toString();
|