Return the attributes with the same type as the passed in oid.
Parameters: oid - the object identifier we wish to match. an array of matched attributes, null if there is no match.
Return an ASN.1 encoded byte array representing the attribute certificate.
an ASN.1 encoded byte array. throws: IOException - if the certificate cannot be encoded.