/forgerock/openam-v13/openam-radius/openam-radius-common/src/main/java/org/forgerock/openam/radius/common/ |
H A D | RequestAuthenticator.java | 50 private byte[] octets = null; field in class:RequestAuthenticator 68 octets = md5.digest(); 72 * Generates a request authenticator field consisting of the 16 octets from the on-the-wire form of a packet. 74 * @param octets the on-the-wire bytes. 76 public RequestAuthenticator(byte[] octets) { argument 77 this.octets = octets; 87 return octets;
|
H A D | ResponseAuthenticator.java | 44 private byte[] octets = null; field in class:ResponseAuthenticator 49 * @param octets the on-the-wire bytes. 51 public ResponseAuthenticator(byte[] octets) { argument 52 this.octets = octets; 62 return octets;
|
H A D | Attribute.java | 62 private byte[] octets; field in class:Attribute 65 * Constructor using the on-the-wire octets for the attribute. 67 * @param octets 68 * the on-the-wire octets 70 public Attribute(byte[] octets) { argument 71 this.octets = octets; 72 type = AttributeType.getType(octets[0]); 85 * Sets the array of octets representing the format of a given attribute on-the-wire including prefixed type and 86 * length octets a 92 setOctets(byte[] octets) argument [all...] |
H A D | OctetUtils.java | 104 * - has a four octets on the wire but uses an {@link java.net.InetAddress} object internally. 131 byte[] octets; 139 octets = new byte[Attribute.MAX_ATTRIBUTE_LENGTH]; 140 octets[0] = (byte) type.getTypeCode(); 141 octets[1] = (byte) Attribute.MAX_ATTRIBUTE_LENGTH; // max length 142 System.arraycopy(s, 0, octets, 2, Attribute.MAX_ATTRIBUTE_VALUE_LENGTH); 144 octets = new byte[s.length + 2]; 145 octets[0] = (byte) type.getTypeCode(); 146 octets[1] = (byte) (s.length + 2); 147 System.arraycopy(s, 0, octets, 200 toIntVal(byte[] octets) argument [all...] |
H A D | PacketFactory.java | 61 * @param octets 65 public static Packet toPacket(byte[] octets) { argument 68 // octets. length is 3rd/4th octets in big endian, network byte order. 69 int packetLen = octets[3] & 0xFF; 70 packetLen |= ((octets[2] << 8) & 0xFF00); 72 return toPacket(ByteBuffer.wrap(octets, 0, packetLen)); 80 * ByteBuffer containing the octets for the packet in on-the-wire-format. 81 * @return the packet type representing the packet found in the buffer octets 125 // now pull out the set of octets fo [all...] |
H A D | ReplyMessageAttribute.java | 48 * Creates a ReplyMessageAttribute from the on-the-wire octets. 50 * @param octets 53 public ReplyMessageAttribute(byte[] octets) { argument 54 super(octets); 55 msg = new String(octets, 2, octets.length - 2, Charset.forName("utf-8"));
|
H A D | StateAttribute.java | 59 * Creates a ReplyMessageAttribute from the on-the-wire octets. 61 * @param octets 64 public StateAttribute(byte[] octets) { argument 65 super(octets); 66 state = new String(octets, 2, octets.length - 2, Charset.forName("utf-8"));
|
H A D | UserNameAttribute.java | 49 * @param octets 52 public UserNameAttribute(byte[] octets) { argument 53 super(octets); 54 this.username = new String(octets, 2, octets.length - 2); 66 final byte[] octets = super.getOctets(); 67 this.username = new String(octets, 2, octets.length - 2);
|
/forgerock/openam-v13/openam-radius/openam-radius-common/src/main/java/org/forgerock/openam/radius/common/packet/ |
H A D | UnknownAttribute.java | 32 * @param octets the on-the-wire bytes from which to construct this instance 34 public UnknownAttribute(byte[] octets) { argument 35 super(UnknownAttribute.toOctets(octets)); 36 super.setOctets(octets); 40 * Swaps the type code from the originating octets to the Unknown type so that the super class can find the 42 * by the hexadecimal representation of the original unchanged set of octets. 44 * @param orig the original octets 45 * @return a clone of the same octets but with the type code set to the Unknown value of 0.
|
H A D | CHAPChallengeAttribute.java | 53 * @param octets the on-the-wire bytes from which to construct this instance 55 public CHAPChallengeAttribute(byte[] octets) { argument 56 super(octets); 57 str = new String(octets, 2, octets.length - 2);
|
H A D | CHAPPasswordAttribute.java | 59 * very clear on the "password" value other than saying it is 16 octets in length. For clarity we must read RFC 79 * @return the octets for the on-the-wire bytes 82 byte[] octets = new byte[19]; 95 octets[0] = (byte) AttributeType.CHAP_PASSWORD.getTypeCode(); 96 octets[1] = 19; 97 octets[2] = (byte) identifier; 98 System.arraycopy(s, 0, octets, 3, 16); 99 return octets; 106 * @param octets the on-the-wire bytes from which to construct this instance 108 public CHAPPasswordAttribute(byte[] octets) { argument [all...] |
H A D | CallbackIdAttribute.java | 52 * @param octets the on-the-wire octets from which to instantiate this instance 54 public CallbackIdAttribute(byte[] octets) { argument 55 super(octets); 56 str = new String(octets, 2, octets.length - 2);
|
H A D | CallbackNumberAttribute.java | 52 * @param octets 55 public CallbackNumberAttribute(byte[] octets) { argument 56 super(octets); 57 str = new String(octets, 2, octets.length - 2);
|
H A D | CallerStationIdAttribute.java | 52 * @param octets the on-the-wire bytes from which to construct this instance 54 public CallerStationIdAttribute(byte[] octets) { argument 55 super(octets); 56 str = new String(octets, 2, octets.length - 2);
|
H A D | CallingStationIdAttribute.java | 52 * @param octets the on-the-wire bytes from which to construct this instance 54 public CallingStationIdAttribute(byte[] octets) { argument 55 super(octets); 56 str = new String(octets, 2, octets.length - 2);
|
H A D | FilterIdAttribute.java | 51 * limited to 256 octets in length the string will be truncated accordingly if it exceeds 254 bytes due to the 52 * preceding attriute type code octet and attribute length octets being included in the overall attribute length. 65 * @param octets the on-the-wire bytes from which to construct this instance 67 public FilterIdAttribute(byte[] octets) { argument 68 super(octets); 69 this.filterId = new String(octets, 2, octets.length - 2);
|
H A D | FramedAppleTalkLinkAttribute.java | 69 * @param octets the on-the-wire bytes from which to construct this instance 71 public FramedAppleTalkLinkAttribute(byte[] octets) { argument 72 super(octets); 73 networkNumber = OctetUtils.toIntVal(octets);
|
H A D | FramedAppleTalkNetworkAttribute.java | 69 * @param octets the on-the-wire bytes from which to construct this instance 71 public FramedAppleTalkNetworkAttribute(byte[] octets) { argument 72 super(octets); 73 networkNumber = OctetUtils.toIntVal(octets);
|
H A D | FramedAppleTalkZoneAttribute.java | 51 * limited to 256 octets in length the string will be truncated accordingly if it exceeds 254 bytes due to the 52 * preceding attriute type code octet and attribute length octets being included in the overall attribute length. 65 * @param octets the on-the-wire bytes from which to construct this instance 67 public FramedAppleTalkZoneAttribute(byte[] octets) { argument 68 super(octets); 69 this.zone = new String(octets, 2, octets.length - 2);
|
H A D | FramedCompressionAttribute.java | 79 * @param octets the on-the-wire bytes from which to construct this instance 81 public FramedCompressionAttribute(byte[] octets) { argument 82 super(octets); 83 this.compression = OctetUtils.toIntVal(octets);
|
H A D | FramedIPNetmaskAttribute.java | 51 * footprint of the other constructor that uses the raw octets. The ordering is significant. The first parameter 72 * @param octets the on-the-wire bytes from which to construct this instance 74 public FramedIPNetmaskAttribute(byte[] octets) { argument 75 super(octets); 76 mask[0] = octets[2]; 77 mask[1] = octets[3]; 78 mask[2] = octets[4]; 79 mask[3] = octets[5];
|
H A D | FramedIPXNetworkAttribute.java | 51 * @param octets the FramedIPX network packet 53 public FramedIPXNetworkAttribute(byte[] octets) { argument 55 super(octets); 56 net[0] = octets[2]; 57 net[1] = octets[3]; 58 net[2] = octets[4]; 59 net[3] = octets[5];
|
/forgerock/openam/openam-radius/openam-radius-common/src/main/java/org/forgerock/openam/radius/common/ |
H A D | RequestAuthenticator.java | 50 private byte[] octets = null; field in class:RequestAuthenticator 68 octets = md5.digest(); 72 * Generates a request authenticator field consisting of the 16 octets from the on-the-wire form of a packet. 74 * @param octets the on-the-wire bytes. 76 public RequestAuthenticator(byte[] octets) { argument 77 this.octets = octets; 87 return octets;
|
H A D | ResponseAuthenticator.java | 44 private byte[] octets = null; field in class:ResponseAuthenticator 49 * @param octets the on-the-wire bytes. 51 public ResponseAuthenticator(byte[] octets) { argument 52 this.octets = octets; 62 return octets;
|
/forgerock/openam/openam-radius/openam-radius-common/src/main/java/org/forgerock/openam/radius/common/packet/ |
H A D | UnknownAttribute.java | 32 * @param octets the on-the-wire bytes from which to construct this instance 34 public UnknownAttribute(byte[] octets) { argument 35 super(UnknownAttribute.toOctets(octets)); 36 super.setOctets(octets); 40 * Swaps the type code from the originating octets to the Unknown type so that the super class can find the 42 * by the hexadecimal representation of the original unchanged set of octets. 44 * @param orig the original octets 45 * @return a clone of the same octets but with the type code set to the Unknown value of 0.
|