All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.novell.ldap.events.edir.eventdata.ReferralAddress Maven / Gradle / Ivy

There is a newer version: 2009-10-07
Show newest version
/* **************************************************************************
 * $OpenLDAP: pkg/jldap/com/novell/ldap/events/edir/eventdata/ReferralAddress.java,v 1.3 2005/01/17 15:48:57 sunilk Exp $
 *
 * Copyright (C) 1999-2002 Novell, Inc. All Rights Reserved.
 *
 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
 * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
 * TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
 * AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
 * IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
 * OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
 * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
 * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
 ******************************************************************************/
package com.novell.ldap.events.edir.eventdata;

import com.novell.ldap.asn1.ASN1Integer;
import com.novell.ldap.asn1.ASN1OctetString;
import com.novell.ldap.asn1.ASN1Sequence;


/**
 * The class represents the Address(IP/IPX/IPV6 etc) datastructure for
 * Edir Events Notification.
 * 
 * 

* The encoding for this class is as follows:- ReferralAddress := SEQUENCE {
*   addressType INTEGER,
*   address OCTET STRING
*   } *

* *

* Note: Please refer the JLDAP SDK Documentation at * * http://developer.novell.com/ndk/jldap.htm for details of all * the properties. *

*/ public class ReferralAddress { private int addressType; private String address; /** * Default Constructor * * @param dseobject ASN1Sequence containing the encoded data. */ public ReferralAddress(final ASN1Sequence dseobject) { super(); addressType = ((ASN1Integer) dseobject.get(0)).intValue(); address = ((ASN1OctetString) dseobject.get(1)).stringValue(); } /** * Returns the Address as String. * * @return Address as String. */ public String getAddress() { return address; } /** * Returns the Address Type. * * @return AddressType as integer. */ public int getAddressType() { return addressType; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy