| | |
| | | } |
| | | |
| | | /** |
| | | * Creates a new UpdateMsg with the given informations. |
| | | * Creates a new UpdateMsg with the given information. |
| | | * |
| | | * @param ctx The replication Context of the operation for which the |
| | | * update message must be created,. |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates a new UpdateMessage with the given informations. |
| | | * Creates a new UpdateMessage with the given information. |
| | | * |
| | | * @param cn The ChangeNumber of the operation for which the |
| | | * UpdateMessage is created. |
| | |
| | | /* Read the changeNumber */ |
| | | int pos = 2; |
| | | int length = getNextLength(encodedMsg, pos); |
| | | String changenumberStr = new String(encodedMsg, pos, length, "UTF-8"); |
| | | String changeNumberStr = new String(encodedMsg, pos, length, "UTF-8"); |
| | | pos += length + 1; |
| | | changeNumber = new ChangeNumber(changenumberStr); |
| | | changeNumber = new ChangeNumber(changeNumberStr); |
| | | |
| | | /* Read the dn */ |
| | | length = getNextLength(encodedMsg, pos); |
| | |
| | | pos += length + 1; |
| | | |
| | | /* Read the assured information */ |
| | | if (encodedMsg[pos++] == 1) |
| | | assuredFlag = true; |
| | | else |
| | | assuredFlag = false; |
| | | assuredFlag = encodedMsg[pos++] == 1; |
| | | |
| | | /* Read the assured mode */ |
| | | assuredMode = AssuredMode.valueOf(encodedMsg[pos++]); |
| | |
| | | /* read the changeNumber */ |
| | | int pos = 1; |
| | | int length = getNextLength(encodedMsg, pos); |
| | | String changenumberStr = new String(encodedMsg, pos, length, "UTF-8"); |
| | | String changeNumberStr = new String(encodedMsg, pos, length, "UTF-8"); |
| | | pos += length + 1; |
| | | changeNumber = new ChangeNumber(changenumberStr); |
| | | changeNumber = new ChangeNumber(changeNumberStr); |
| | | |
| | | /* read the assured information */ |
| | | if (encodedMsg[pos++] == 1) |
| | | assuredFlag = true; |
| | | else |
| | | assuredFlag = false; |
| | | assuredFlag = encodedMsg[pos++] == 1; |
| | | |
| | | /* read the dn */ |
| | | length = getNextLength(encodedMsg, pos); |
| | |
| | | /** |
| | | * Decode a provided byte array as a list of RawAttribute. |
| | | * @param in The provided byte array. |
| | | * @return The list of Rawattribute objects. |
| | | * @return The list of RawAttribute objects. |
| | | * @throws LDAPException when it occurs. |
| | | * @throws ASN1Exception when it occurs. |
| | | */ |