
/* **************************************************************************

  $Archive: /njcl_v2/src/com/novell/service/session/net/NetAsn1ID.java $
  $Revision: 6 $
  $Modtime: 1/25/00 4:49p $

  Copyright (c) 1997 Novell, Inc.  All Rights Reserved.

  THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  CRIMINAL AND CIVIL LIABILITY.

****************************************************************************/

package com.novell.service.jncpv2.net;


import java.io.Serializable;


/** @internal
 *
 */
public final class NetAsn1ID implements Serializable
{
   private byte [] data;


   /**
    *
    */
   public NetAsn1ID ()
   {
      data = new byte [NetService.MAX_ASN1_NAME];

   } /* NetAsn1ID () */


   /**
    *
    */
   public byte [] getData ()
   {
      // Return a copy.
      byte [] bRet = new byte [NetService.MAX_ASN1_NAME];
      System.arraycopy(this.data, 0, bRet, 0, NetService.MAX_ASN1_NAME);
      return (bRet);

   } /* getData () */

   /**
    *
    */
   public void setData(byte [] data)
   {
      System.arraycopy(data, 0, this.data, 0, NetService.MAX_ASN1_NAME);
   }

} /* NetAsn1ID */


