1 25 package org.objectweb.carol.util.csiv2.struct; 26 27 import java.io.Serializable ; 28 29 import org.objectweb.carol.util.csiv2.gss.GSSHelper; 30 31 35 public class SasStruct implements Serializable { 36 37 40 private short targetSupports = 0; 41 42 45 private short targetRequires = 0; 46 47 50 private int supportedIdentityTypes = 0; 51 52 55 private byte[][] supportedNamingMechanisms = new byte[0][0]; 56 57 60 public short getTargetRequires() { 61 return targetRequires; 62 } 63 64 67 public void setTargetRequires(int targetRequires) { 68 this.targetRequires = (short) targetRequires; 69 } 70 71 74 public short getTargetSupports() { 75 return targetSupports; 76 } 77 78 81 public void setTargetSupports(int targetSupports) { 82 this.targetSupports = (short) targetSupports; 83 } 84 85 88 public int getSupportedIdentityTypes() { 89 return supportedIdentityTypes; 90 } 91 92 95 public void setSupportedIdentityTypes(int supportedIdentityTypes) { 96 this.supportedIdentityTypes = supportedIdentityTypes; 97 } 98 99 102 public byte[][] getSupportedNamingMechanisms() { 103 return supportedNamingMechanisms; 104 } 105 106 108 public void enableGSSUPSupportedNamingMechanisms() { 109 110 115 116 byte[] gssupDerEncoding = GSSHelper.getMechOidDer(); 117 118 this.supportedNamingMechanisms = new byte[1][gssupDerEncoding.length]; 120 121 System.arraycopy(gssupDerEncoding, 0, this.supportedNamingMechanisms[0], 0, gssupDerEncoding.length); 123 124 } 125 126 } | Popular Tags |