| | |
| | | public CompareRequestProtocolOp(ASN1OctetString dn, String attributeType, |
| | | ASN1OctetString assertionValue) |
| | | { |
| | | |
| | | this.dn = dn; |
| | | this.attributeType = attributeType; |
| | | this.assertionValue = assertionValue; |
| | |
| | | */ |
| | | public ASN1OctetString getDN() |
| | | { |
| | | |
| | | return dn; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setDN(ASN1OctetString dn) |
| | | { |
| | | |
| | | this.dn = dn; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getAttributeType() |
| | | { |
| | | |
| | | return attributeType; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setAttributeType(String attributeType) |
| | | { |
| | | |
| | | this.attributeType = attributeType; |
| | | } |
| | | |
| | |
| | | */ |
| | | public ASN1OctetString getAssertionValue() |
| | | { |
| | | |
| | | return assertionValue; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setAssertionValue(ASN1OctetString assertionValue) |
| | | { |
| | | |
| | | this.assertionValue = assertionValue; |
| | | } |
| | | |
| | |
| | | */ |
| | | public byte getType() |
| | | { |
| | | |
| | | return OP_TYPE_COMPARE_REQUEST; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getProtocolOpName() |
| | | { |
| | | |
| | | return "Compare Request"; |
| | | } |
| | | |
| | |
| | | */ |
| | | public ASN1Element encode() |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements = new ArrayList<ASN1Element>(2); |
| | | elements.add(dn); |
| | | |
| | |
| | | element) |
| | | throws LDAPException |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements; |
| | | try |
| | | { |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("CompareRequest(dn="); |
| | | dn.toString(buffer); |
| | | buffer.append(", attribute="); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | | |
| | | StringBuilder indentBuf = new StringBuilder(indent); |
| | | for (int i=0 ; i < indent; i++) |
| | | { |