| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.controls; |
| | | |
| | |
| | | try |
| | | { |
| | | reader.readStartSequence(); |
| | | authorizationDN = DN.decode(reader.readOctetString()); |
| | | authorizationDN = DN.valueOf(reader.readOctetString()); |
| | | reader.readEndSequence(); |
| | | } |
| | | catch (Exception e) |
| | |
| | | { |
| | | if (authorizationDN == null) |
| | | { |
| | | authorizationDN = DN.decode(rawAuthorizationDN); |
| | | authorizationDN = DN.valueOf(rawAuthorizationDN); |
| | | } |
| | | |
| | | return authorizationDN; |