Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
OIDTokenizer.java
Package: security.rar [view]
Upload User: lior1029
Upload Date: 2013-05-07
Package Size: 209k
Code Size: 1k
Category:
CA program
Development Platform:
Java
- package org.bouncycastle.asn1;
- /**
- * class for breaking up an OID into it's component tokens, ala
- * java.util.StringTokenizer. We need this class as some of the
- * lightweight Java environment don't support classes like
- * StringTokenizer.
- */
- public class OIDTokenizer
- {
- private String oid;
- private int index;
- public OIDTokenizer(
- String oid)
- {
- this.oid = oid;
- this.index = 0;
- }
- public boolean hasMoreTokens()
- {
- return (index != -1);
- }
- public String nextToken()
- {
- if (index == -1)
- {
- return null;
- }
- String token;
- int end = oid.indexOf('.', index);
- if (end == -1)
- {
- token = oid.substring(index);
- index = -1;
- return token;
- }
- token = oid.substring(index, end);
- index = end + 1;
- return token;
- }
- }