id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
99,600
jglobus/JGlobus
io/src/main/java/org/globus/io/urlcopy/UrlCopy.java
UrlCopy.getOutputStream
protected GlobusOutputStream getOutputStream(long size) throws Exception { GlobusOutputStream out = null; String toP = dstUrl.getProtocol(); String toFile = dstUrl.getPath(); if (toP.equalsIgnoreCase("file")) { toFile = URLDecoder.decode(toFile)...
java
protected GlobusOutputStream getOutputStream(long size) throws Exception { GlobusOutputStream out = null; String toP = dstUrl.getProtocol(); String toFile = dstUrl.getPath(); if (toP.equalsIgnoreCase("file")) { toFile = URLDecoder.decode(toFile)...
[ "protected", "GlobusOutputStream", "getOutputStream", "(", "long", "size", ")", "throws", "Exception", "{", "GlobusOutputStream", "out", "=", "null", ";", "String", "toP", "=", "dstUrl", ".", "getProtocol", "(", ")", ";", "String", "toFile", "=", "dstUrl", "."...
Returns output stream based on the destination url.
[ "Returns", "output", "stream", "based", "on", "the", "destination", "url", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/io/src/main/java/org/globus/io/urlcopy/UrlCopy.java#L590-L647
99,601
jglobus/JGlobus
io/src/main/java/org/globus/io/urlcopy/UrlCopy.java
UrlCopy.transfer
private boolean transfer(long total, GlobusInputStream in, GlobusOutputStream out) throws IOException { byte [] buffer = new byte[bufferSize]; int bytes = 0; long totalBytes = total; long transferedB...
java
private boolean transfer(long total, GlobusInputStream in, GlobusOutputStream out) throws IOException { byte [] buffer = new byte[bufferSize]; int bytes = 0; long totalBytes = total; long transferedB...
[ "private", "boolean", "transfer", "(", "long", "total", ",", "GlobusInputStream", "in", ",", "GlobusOutputStream", "out", ")", "throws", "IOException", "{", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "bufferSize", "]", ";", "int", "bytes", "=", "...
This function performs the actual transfer.
[ "This", "function", "performs", "the", "actual", "transfer", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/io/src/main/java/org/globus/io/urlcopy/UrlCopy.java#L652-L695
99,602
jglobus/JGlobus
io/src/main/java/org/globus/io/urlcopy/UrlCopy.java
UrlCopy.thirdPartyTransfer
private void thirdPartyTransfer() throws UrlCopyException { logger.debug("Trying third party transfer..."); FTPClient srcFTP = null; FTPClient dstFTP = null; try { srcFTP = createFTPConnection(srcUrl, true); dstFTP = createFTPConnection(dstUrl, false);...
java
private void thirdPartyTransfer() throws UrlCopyException { logger.debug("Trying third party transfer..."); FTPClient srcFTP = null; FTPClient dstFTP = null; try { srcFTP = createFTPConnection(srcUrl, true); dstFTP = createFTPConnection(dstUrl, false);...
[ "private", "void", "thirdPartyTransfer", "(", ")", "throws", "UrlCopyException", "{", "logger", ".", "debug", "(", "\"Trying third party transfer...\"", ")", ";", "FTPClient", "srcFTP", "=", "null", ";", "FTPClient", "dstFTP", "=", "null", ";", "try", "{", "srcF...
This performs thrid party transfer only if source and destination urls are ftp urls.
[ "This", "performs", "thrid", "party", "transfer", "only", "if", "source", "and", "destination", "urls", "are", "ftp", "urls", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/io/src/main/java/org/globus/io/urlcopy/UrlCopy.java#L710-L775
99,603
jglobus/JGlobus
gram/src/main/java/org/globus/rsl/VarRef.java
VarRef.evaluate
public String evaluate(Map symbolTable) throws RslEvaluationException { String var = null; if (symbolTable != null) { var = (String)symbolTable.get(value); } if (var == null && defValue != null) { var = defValue.evaluate(symbolTable); } if (var == null) { /* NOTE: according to the rsl specs the...
java
public String evaluate(Map symbolTable) throws RslEvaluationException { String var = null; if (symbolTable != null) { var = (String)symbolTable.get(value); } if (var == null && defValue != null) { var = defValue.evaluate(symbolTable); } if (var == null) { /* NOTE: according to the rsl specs the...
[ "public", "String", "evaluate", "(", "Map", "symbolTable", ")", "throws", "RslEvaluationException", "{", "String", "var", "=", "null", ";", "if", "(", "symbolTable", "!=", "null", ")", "{", "var", "=", "(", "String", ")", "symbolTable", ".", "get", "(", ...
Evaluates the variable reference with the specified symbol table. The value of the reference is first looked up in the symbol table. If not found, then the default value is used. If the default value is not specified, the reference is evaluated to an empty string. @param symbolTable the symbol table to evaluate the va...
[ "Evaluates", "the", "variable", "reference", "with", "the", "specified", "symbol", "table", ".", "The", "value", "of", "the", "reference", "is", "first", "looked", "up", "in", "the", "symbol", "table", ".", "If", "not", "found", "then", "the", "default", "...
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/rsl/VarRef.java#L89-L114
99,604
jglobus/JGlobus
gram/src/main/java/org/globus/rsl/VarRef.java
VarRef.toRSL
public void toRSL(StringBuffer buf, boolean explicitConcat) { buf.append("$("); buf.append( value ); if (defValue != null) { buf.append(" "); defValue.toRSL(buf, explicitConcat); } buf.append(")"); if (concatValue == null) return; if (explicitConcat) buf.append(" # "); concatValue.toRSL(buf, expl...
java
public void toRSL(StringBuffer buf, boolean explicitConcat) { buf.append("$("); buf.append( value ); if (defValue != null) { buf.append(" "); defValue.toRSL(buf, explicitConcat); } buf.append(")"); if (concatValue == null) return; if (explicitConcat) buf.append(" # "); concatValue.toRSL(buf, expl...
[ "public", "void", "toRSL", "(", "StringBuffer", "buf", ",", "boolean", "explicitConcat", ")", "{", "buf", ".", "append", "(", "\"$(\"", ")", ";", "buf", ".", "append", "(", "value", ")", ";", "if", "(", "defValue", "!=", "null", ")", "{", "buf", ".",...
Produces a RSL representation of this variable reference. @param buf buffer to add the RSL representation to. @param explicitConcat if true explicit concatination will be used in RSL strings.
[ "Produces", "a", "RSL", "representation", "of", "this", "variable", "reference", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/rsl/VarRef.java#L123-L139
99,605
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/trustmanager/PKITrustManager.java
PKITrustManager.checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates, String authType) throws CertificateException { // JGLOBUS-97 : anonymous clients? CertPath certPath = CertificateUtil.getCertPath(x509Certificates); try { this.result = this.validator.engineValidate(certPa...
java
public void checkClientTrusted(X509Certificate[] x509Certificates, String authType) throws CertificateException { // JGLOBUS-97 : anonymous clients? CertPath certPath = CertificateUtil.getCertPath(x509Certificates); try { this.result = this.validator.engineValidate(certPa...
[ "public", "void", "checkClientTrusted", "(", "X509Certificate", "[", "]", "x509Certificates", ",", "String", "authType", ")", "throws", "CertificateException", "{", "// JGLOBUS-97 : anonymous clients?", "CertPath", "certPath", "=", "CertificateUtil", ".", "getCertPath", "...
Test if the client is trusted based on the certificate chain. Does not currently support anonymous clients. @param x509Certificates The certificate chain to test for validity. @param authType The authentication type based on the client certificate. @throws CertificateException If the path validation fails.
[ "Test", "if", "the", "client", "is", "trusted", "based", "on", "the", "certificate", "chain", ".", "Does", "not", "currently", "support", "anonymous", "clients", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/trustmanager/PKITrustManager.java#L89-L100
99,606
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/trustmanager/PKITrustManager.java
PKITrustManager.getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers() { try { Collection<X509Certificate> trusted = CertificateLoadUtil.getTrustedCertificates( this.parameters.getTrustStore(), null); return trusted.toArray(new X509Certificate[trusted.size()]); } catch (KeyStoreExcept...
java
public X509Certificate[] getAcceptedIssuers() { try { Collection<X509Certificate> trusted = CertificateLoadUtil.getTrustedCertificates( this.parameters.getTrustStore(), null); return trusted.toArray(new X509Certificate[trusted.size()]); } catch (KeyStoreExcept...
[ "public", "X509Certificate", "[", "]", "getAcceptedIssuers", "(", ")", "{", "try", "{", "Collection", "<", "X509Certificate", ">", "trusted", "=", "CertificateLoadUtil", ".", "getTrustedCertificates", "(", "this", ".", "parameters", ".", "getTrustStore", "(", ")",...
Get the collection of trusted certificate issuers. @return The trusted certificate issuers.
[ "Get", "the", "collection", "of", "trusted", "certificate", "issuers", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/trustmanager/PKITrustManager.java#L126-L135
99,607
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java
X509Credential.getDecodedPEMObject
private static byte[] getDecodedPEMObject(BufferedReader reader) throws IOException { String line; StringBuffer buf = new StringBuffer(); while ((line = reader.readLine()) != null) { if (line.indexOf("--END") != -1) { // found end return Base64.decode(buf.toString().g...
java
private static byte[] getDecodedPEMObject(BufferedReader reader) throws IOException { String line; StringBuffer buf = new StringBuffer(); while ((line = reader.readLine()) != null) { if (line.indexOf("--END") != -1) { // found end return Base64.decode(buf.toString().g...
[ "private", "static", "byte", "[", "]", "getDecodedPEMObject", "(", "BufferedReader", "reader", ")", "throws", "IOException", "{", "String", "line", ";", "StringBuffer", "buf", "=", "new", "StringBuffer", "(", ")", ";", "while", "(", "(", "line", "=", "reader...
Reads Base64 encoded data from the stream and returns its decoded value. The reading continues until the "END" string is found in the data. Otherwise, returns null.
[ "Reads", "Base64", "encoded", "data", "from", "the", "stream", "and", "returns", "its", "decoded", "value", ".", "The", "reading", "continues", "until", "the", "END", "string", "is", "found", "in", "the", "data", ".", "Otherwise", "returns", "null", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java#L180-L191
99,608
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java
X509Credential.saveCertificateChain
public void saveCertificateChain(OutputStream out) throws IOException, CertificateEncodingException { CertificateIOUtil.writeCertificate(out, this.certChain[0]); for (int i = 1; i < this.certChain.length; i++) { // skip the self-signed certificates if (this.certChain[i].getSubj...
java
public void saveCertificateChain(OutputStream out) throws IOException, CertificateEncodingException { CertificateIOUtil.writeCertificate(out, this.certChain[0]); for (int i = 1; i < this.certChain.length; i++) { // skip the self-signed certificates if (this.certChain[i].getSubj...
[ "public", "void", "saveCertificateChain", "(", "OutputStream", "out", ")", "throws", "IOException", ",", "CertificateEncodingException", "{", "CertificateIOUtil", ".", "writeCertificate", "(", "out", ",", "this", ".", "certChain", "[", "0", "]", ")", ";", "for", ...
COMMENT Used to be "key cert cert cert ...", which is wrong afaik. must be "cert key cert cert ..."
[ "COMMENT", "Used", "to", "be", "key", "cert", "cert", "cert", "...", "which", "is", "wrong", "afaik", ".", "must", "be", "cert", "key", "cert", "cert", "..." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java#L200-L212
99,609
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java
X509Credential.getCertNum
public int getCertNum() { for (int i = this.certChain.length - 1; i >= 0; i--) { if (!this.certChain[i].getSubjectDN().equals(this.certChain[i].getIssuerDN())) { return i + 1; } } return this.certChain.length; }
java
public int getCertNum() { for (int i = this.certChain.length - 1; i >= 0; i--) { if (!this.certChain[i].getSubjectDN().equals(this.certChain[i].getIssuerDN())) { return i + 1; } } return this.certChain.length; }
[ "public", "int", "getCertNum", "(", ")", "{", "for", "(", "int", "i", "=", "this", ".", "certChain", ".", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "!", "this", ".", "certChain", "[", "i", "]", ".", "getSub...
Returns the number of certificates in the credential without the self-signed certificates. @return number of certificates without counting self-signed certificates
[ "Returns", "the", "number", "of", "certificates", "in", "the", "credential", "without", "the", "self", "-", "signed", "certificates", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java#L273-L280
99,610
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java
X509Credential.getTimeLeft
public long getTimeLeft() { Date earliestTime = null; for (int i = 0; i < this.certChain.length; i++) { Date time = this.certChain[i].getNotAfter(); if (earliestTime == null || time.before(earliestTime)) { earliestTime = time; } } long ...
java
public long getTimeLeft() { Date earliestTime = null; for (int i = 0; i < this.certChain.length; i++) { Date time = this.certChain[i].getNotAfter(); if (earliestTime == null || time.before(earliestTime)) { earliestTime = time; } } long ...
[ "public", "long", "getTimeLeft", "(", ")", "{", "Date", "earliestTime", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "certChain", ".", "length", ";", "i", "++", ")", "{", "Date", "time", "=", "this", ".", "certC...
Returns time left of this credential. The time left of the credential is based on the certificate with the shortest validity time. @return time left in seconds. Returns 0 if the certificate has expired.
[ "Returns", "time", "left", "of", "this", "credential", ".", "The", "time", "left", "of", "the", "credential", "is", "based", "on", "the", "certificate", "with", "the", "shortest", "validity", "time", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java#L355-L365
99,611
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java
X509Credential.getIdentityCertificate
public X509Certificate getIdentityCertificate() { try { return BouncyCastleUtil.getIdentityCertificate(this.certChain); } catch (CertificateException e) { logger.debug("Error getting certificate identity.", e); return null; } }
java
public X509Certificate getIdentityCertificate() { try { return BouncyCastleUtil.getIdentityCertificate(this.certChain); } catch (CertificateException e) { logger.debug("Error getting certificate identity.", e); return null; } }
[ "public", "X509Certificate", "getIdentityCertificate", "(", ")", "{", "try", "{", "return", "BouncyCastleUtil", ".", "getIdentityCertificate", "(", "this", ".", "certChain", ")", ";", "}", "catch", "(", "CertificateException", "e", ")", "{", "logger", ".", "debu...
Returns the identity certificate of this credential. The identity certificate is the first certificate in the chain that is not an impersonation proxy certificate. @return <code>X509Certificate</code> the identity cert. Null, if unable to get the identity certificate (an error occurred)
[ "Returns", "the", "identity", "certificate", "of", "this", "credential", ".", "The", "identity", "certificate", "is", "the", "first", "certificate", "in", "the", "chain", "that", "is", "not", "an", "impersonation", "proxy", "certificate", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java#L390-L397
99,612
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java
X509Credential.getPathConstraint
public int getPathConstraint() { int pathLength = Integer.MAX_VALUE; try { for (int i=0; i<this.certChain.length; i++) { int length = BouncyCastleUtil.getProxyPathConstraint(this.certChain[i]); // if length is one, then no proxy cert extension exists, so ...
java
public int getPathConstraint() { int pathLength = Integer.MAX_VALUE; try { for (int i=0; i<this.certChain.length; i++) { int length = BouncyCastleUtil.getProxyPathConstraint(this.certChain[i]); // if length is one, then no proxy cert extension exists, so ...
[ "public", "int", "getPathConstraint", "(", ")", "{", "int", "pathLength", "=", "Integer", ".", "MAX_VALUE", ";", "try", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "certChain", ".", "length", ";", "i", "++", ")", "{", "int", ...
Returns the path length constraint. The shortest length in the chain of certificates is returned as the credential's path length. @return The path length constraint of the credential. -1 is any error occurs.
[ "Returns", "the", "path", "length", "constraint", ".", "The", "shortest", "length", "in", "the", "chain", "of", "certificates", "is", "returned", "as", "the", "credential", "s", "path", "length", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509Credential.java#L406-L426
99,613
jglobus/JGlobus
gss/src/main/java/org/globus/net/ServerSocketFactory.java
ServerSocketFactory.createServerSocket
private ServerSocket createServerSocket(int backlog, InetAddress binAddr) throws IOException { ServerSocket server = null ; int port = 0; while(true) { port = this.portRange.getFreePort(port); try { server = new PrServerSocket(port, backlog, binA...
java
private ServerSocket createServerSocket(int backlog, InetAddress binAddr) throws IOException { ServerSocket server = null ; int port = 0; while(true) { port = this.portRange.getFreePort(port); try { server = new PrServerSocket(port, backlog, binA...
[ "private", "ServerSocket", "createServerSocket", "(", "int", "backlog", ",", "InetAddress", "binAddr", ")", "throws", "IOException", "{", "ServerSocket", "server", "=", "null", ";", "int", "port", "=", "0", ";", "while", "(", "true", ")", "{", "port", "=", ...
Tries to find first available port within the port range specified. If it finds a free port, it first checks if the port is not used by any other server. If it is, it keeps looking for a next available port. If none found, it throws an exception. If the port is available the server instance is returned.
[ "Tries", "to", "find", "first", "available", "port", "within", "the", "port", "range", "specified", ".", "If", "it", "finds", "a", "free", "port", "it", "first", "checks", "if", "the", "port", "is", "not", "used", "by", "any", "other", "server", ".", "...
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gss/src/main/java/org/globus/net/ServerSocketFactory.java#L124-L142
99,614
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/GridFTPClient.java
GridFTPClient.checkGridFTPSupport
protected void checkGridFTPSupport() throws IOException, ServerException { FeatureList fl = getFeatureList(); if ( !(fl.contains(FeatureList.PARALLEL) && fl.contains(FeatureList.ESTO) && fl.contains(FeatureList.ERET) && fl.cont...
java
protected void checkGridFTPSupport() throws IOException, ServerException { FeatureList fl = getFeatureList(); if ( !(fl.contains(FeatureList.PARALLEL) && fl.contains(FeatureList.ESTO) && fl.contains(FeatureList.ERET) && fl.cont...
[ "protected", "void", "checkGridFTPSupport", "(", ")", "throws", "IOException", ",", "ServerException", "{", "FeatureList", "fl", "=", "getFeatureList", "(", ")", ";", "if", "(", "!", "(", "fl", ".", "contains", "(", "FeatureList", ".", "PARALLEL", ")", "&&",...
assure that the server supports extended transfer features; throw exception if not
[ "assure", "that", "the", "server", "supports", "extended", "transfer", "features", ";", "throw", "exception", "if", "not" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/GridFTPClient.java#L768-L780
99,615
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/GridFTPClient.java
GridFTPClient.get
public void get(String remoteFileName, File localFile) throws IOException, ClientException, ServerException { if (gSession.transferMode == GridFTPSession.MODE_EBLOCK) { DataSink sink = new FileRandomIO(new RandomAccessFile(loc...
java
public void get(String remoteFileName, File localFile) throws IOException, ClientException, ServerException { if (gSession.transferMode == GridFTPSession.MODE_EBLOCK) { DataSink sink = new FileRandomIO(new RandomAccessFile(loc...
[ "public", "void", "get", "(", "String", "remoteFileName", ",", "File", "localFile", ")", "throws", "IOException", ",", "ClientException", ",", "ServerException", "{", "if", "(", "gSession", ".", "transferMode", "==", "GridFTPSession", ".", "MODE_EBLOCK", ")", "{...
basic compatibility API
[ "basic", "compatibility", "API" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/GridFTPClient.java#L933-L945
99,616
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/GridFTPClient.java
GridFTPClient.setChecksum
public void setChecksum(ChecksumAlgorithm algorithm, String value) throws IOException, ServerException { String arguments = algorithm.toFtpCmdArgument() + " " + value; Command cmd = new Command("SCKS", arguments); try { controlChannel.execute(cmd)...
java
public void setChecksum(ChecksumAlgorithm algorithm, String value) throws IOException, ServerException { String arguments = algorithm.toFtpCmdArgument() + " " + value; Command cmd = new Command("SCKS", arguments); try { controlChannel.execute(cmd)...
[ "public", "void", "setChecksum", "(", "ChecksumAlgorithm", "algorithm", ",", "String", "value", ")", "throws", "IOException", ",", "ServerException", "{", "String", "arguments", "=", "algorithm", ".", "toFtpCmdArgument", "(", ")", "+", "\" \"", "+", "value", ";"...
Sets the checksum values ahead of the transfer @param algorithm the checksume algorithm @param value the checksum value as hexadecimal number @exception ServerException if an error occured.
[ "Sets", "the", "checksum", "values", "ahead", "of", "the", "transfer" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/GridFTPClient.java#L968-L981
99,617
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/GridFTPClient.java
GridFTPClient.checksum
public String checksum(ChecksumAlgorithm algorithm, long offset, long length, String file) throws IOException, ServerException { String arguments = algorithm.toFtpCmdArgument() + " " + String.valueOf(offset) + " " + String.valueOf(length) + " " + file; ...
java
public String checksum(ChecksumAlgorithm algorithm, long offset, long length, String file) throws IOException, ServerException { String arguments = algorithm.toFtpCmdArgument() + " " + String.valueOf(offset) + " " + String.valueOf(length) + " " + file; ...
[ "public", "String", "checksum", "(", "ChecksumAlgorithm", "algorithm", ",", "long", "offset", ",", "long", "length", ",", "String", "file", ")", "throws", "IOException", ",", "ServerException", "{", "String", "arguments", "=", "algorithm", ".", "toFtpCmdArgument",...
Computes and returns a checksum of a file. transferred. @param algorithm the checksume algorithm @param offset the offset @param length the length @param file file to compute checksum of @return the computed checksum @exception ServerException if an error occured.
[ "Computes", "and", "returns", "a", "checksum", "of", "a", "file", ".", "transferred", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/GridFTPClient.java#L995-L1012
99,618
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/GridFTPClient.java
GridFTPClient.changeGroup
public void changeGroup(String group, String file) throws IOException, ServerException { String arguments = group + " " + file; Command cmd = new Command("SITE CHGRP", arguments); try { controlChannel.execute(cmd); } catch (UnexpectedReplyCodeException urce) { ...
java
public void changeGroup(String group, String file) throws IOException, ServerException { String arguments = group + " " + file; Command cmd = new Command("SITE CHGRP", arguments); try { controlChannel.execute(cmd); } catch (UnexpectedReplyCodeException urce) { ...
[ "public", "void", "changeGroup", "(", "String", "group", ",", "String", "file", ")", "throws", "IOException", ",", "ServerException", "{", "String", "arguments", "=", "group", "+", "\" \"", "+", "file", ";", "Command", "cmd", "=", "new", "Command", "(", "\...
Change the Unix group membership of a file. @param group the name or ID of the group @param file the file whose group membership should be changed @exception ServerException if an error occurred.
[ "Change", "the", "Unix", "group", "membership", "of", "a", "file", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/GridFTPClient.java#L1085-L1096
99,619
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/GridFTPClient.java
GridFTPClient.changeModificationTime
public void changeModificationTime(int year, int month, int day, int hour, int min, int sec, String file) throws IOException, ServerException { DecimalFormat df2 = new DecimalFormat("00"); DecimalFormat df4 = new DecimalFormat("0000"); String arguments = df4.format(year) + d...
java
public void changeModificationTime(int year, int month, int day, int hour, int min, int sec, String file) throws IOException, ServerException { DecimalFormat df2 = new DecimalFormat("00"); DecimalFormat df4 = new DecimalFormat("0000"); String arguments = df4.format(year) + d...
[ "public", "void", "changeModificationTime", "(", "int", "year", ",", "int", "month", ",", "int", "day", ",", "int", "hour", ",", "int", "min", ",", "int", "sec", ",", "String", "file", ")", "throws", "IOException", ",", "ServerException", "{", "DecimalForm...
Change the modification time of a file. @param year Modifcation year @param month Modification month (1-12) @param day Modification day (1-31) @param hour Modification hour (0-23) @param min Modification minutes (0-59) @param sec Modification seconds (0-59) @param file file whose m...
[ "Change", "the", "modification", "time", "of", "a", "file", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/GridFTPClient.java#L1111-L1127
99,620
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/GridFTPClient.java
GridFTPClient.createSymbolicLink
public void createSymbolicLink(String link_target, String link_name) throws IOException, ServerException { String arguments = link_target.replaceAll(" ", "%20") + " " + link_name; Command cmd = new Command("SITE SYMLINK", arguments); try { controlChannel.execute(cmd); ...
java
public void createSymbolicLink(String link_target, String link_name) throws IOException, ServerException { String arguments = link_target.replaceAll(" ", "%20") + " " + link_name; Command cmd = new Command("SITE SYMLINK", arguments); try { controlChannel.execute(cmd); ...
[ "public", "void", "createSymbolicLink", "(", "String", "link_target", ",", "String", "link_name", ")", "throws", "IOException", ",", "ServerException", "{", "String", "arguments", "=", "link_target", ".", "replaceAll", "(", "\" \"", ",", "\"%20\"", ")", "+", "\"...
Create a symbolic link on the FTP server. @param link_target the path to which the symbolic link should point @param link_name the path of the symbolic link to create @throws IOException @throws ServerException if an error occurred.
[ "Create", "a", "symbolic", "link", "on", "the", "FTP", "server", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/GridFTPClient.java#L1137-L1150
99,621
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509Extension.java
X509Extension.setOid
public void setOid(String oid) { if (oid == null) { throw new IllegalArgumentException(i18n.getMessage("oidNull")); } this.oid = oid; }
java
public void setOid(String oid) { if (oid == null) { throw new IllegalArgumentException(i18n.getMessage("oidNull")); } this.oid = oid; }
[ "public", "void", "setOid", "(", "String", "oid", ")", "{", "if", "(", "oid", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "i18n", ".", "getMessage", "(", "\"oidNull\"", ")", ")", ";", "}", "this", ".", "oid", "=", "oid", ...
Sets the oid of this extension. @param oid the oid of this extension. Cannot not null.
[ "Sets", "the", "oid", "of", "this", "extension", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509Extension.java#L78-L83
99,622
jglobus/JGlobus
gram/src/main/java/org/globus/gram/GramJob.java
GramJob.addListener
public void addListener(GramJobListener listener) { if (listeners == null) listeners = new Vector(); listeners.addElement(listener); }
java
public void addListener(GramJobListener listener) { if (listeners == null) listeners = new Vector(); listeners.addElement(listener); }
[ "public", "void", "addListener", "(", "GramJobListener", "listener", ")", "{", "if", "(", "listeners", "==", "null", ")", "listeners", "=", "new", "Vector", "(", ")", ";", "listeners", ".", "addElement", "(", "listener", ")", ";", "}" ]
Add a listener to the GramJob. The listener will be notified whenever the status of the GramJob changes. @param listener The object that wishes to receive status updates. @see org.globus.gram.GramJobListener
[ "Add", "a", "listener", "to", "the", "GramJob", ".", "The", "listener", "will", "be", "notified", "whenever", "the", "status", "of", "the", "GramJob", "changes", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/GramJob.java#L80-L83
99,623
jglobus/JGlobus
gram/src/main/java/org/globus/gram/GramJob.java
GramJob.setStatus
protected void setStatus(int status) { if (this.status == status) return; this.status = status; if (listeners == null) return; int size = listeners.size(); for(int i=0;i<size;i++) { GramJobListener listener = (GramJobListener)listeners.elementAt(i); listener.statusChanged(this); } }
java
protected void setStatus(int status) { if (this.status == status) return; this.status = status; if (listeners == null) return; int size = listeners.size(); for(int i=0;i<size;i++) { GramJobListener listener = (GramJobListener)listeners.elementAt(i); listener.statusChanged(this); } }
[ "protected", "void", "setStatus", "(", "int", "status", ")", "{", "if", "(", "this", ".", "status", "==", "status", ")", "return", ";", "this", ".", "status", "=", "status", ";", "if", "(", "listeners", "==", "null", ")", "return", ";", "int", "size"...
Sets the status of the job. User should not call this function. @param status status of the job
[ "Sets", "the", "status", "of", "the", "job", ".", "User", "should", "not", "call", "this", "function", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/GramJob.java#L173-L183
99,624
jglobus/JGlobus
gram/src/main/java/org/globus/gram/GramJob.java
GramJob.request
public void request(String contact, boolean batch) throws GramException, GSSException { Gram.request(contact, this, batch); }
java
public void request(String contact, boolean batch) throws GramException, GSSException { Gram.request(contact, this, batch); }
[ "public", "void", "request", "(", "String", "contact", ",", "boolean", "batch", ")", "throws", "GramException", ",", "GSSException", "{", "Gram", ".", "request", "(", "contact", ",", "this", ",", "batch", ")", ";", "}" ]
Submits a job to the specified gatekeeper either as an interactive or batch job. Performs limited delegation. @param contact the resource manager contact. @param batch specifies if the job should be submitted as a batch job. @throws GramException if error occurs during job submission. @throws GSSException if user cred...
[ "Submits", "a", "job", "to", "the", "specified", "gatekeeper", "either", "as", "an", "interactive", "or", "batch", "job", ".", "Performs", "limited", "delegation", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/GramJob.java#L272-L275
99,625
jglobus/JGlobus
gram/src/main/java/org/globus/gram/GramJob.java
GramJob.signal
public int signal(int signal, String arg) throws GramException, GSSException { return Gram.jobSignal(this, signal, arg); }
java
public int signal(int signal, String arg) throws GramException, GSSException { return Gram.jobSignal(this, signal, arg); }
[ "public", "int", "signal", "(", "int", "signal", ",", "String", "arg", ")", "throws", "GramException", ",", "GSSException", "{", "return", "Gram", ".", "jobSignal", "(", "this", ",", "signal", ",", "arg", ")", ";", "}" ]
Sends a signal command to the job. @param signal signal type @param arg argument of signal @throws GramException if error occurs during signalization. @throws GSSException if user credentials are invalid.
[ "Sends", "a", "signal", "command", "to", "the", "job", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/GramJob.java#L383-L386
99,626
jglobus/JGlobus
gram/src/main/java/org/globus/gram/GramJob.java
GramJob.getStatusAsString
public static String getStatusAsString(int status) { if (status == STATUS_PENDING) { return "PENDING"; } else if (status == STATUS_ACTIVE) { return "ACTIVE"; } else if (status == STATUS_DONE) { return "DONE"; } else if (status == STATUS_FAILED) { return "FAILED"; } else if (status == STATUS_SUS...
java
public static String getStatusAsString(int status) { if (status == STATUS_PENDING) { return "PENDING"; } else if (status == STATUS_ACTIVE) { return "ACTIVE"; } else if (status == STATUS_DONE) { return "DONE"; } else if (status == STATUS_FAILED) { return "FAILED"; } else if (status == STATUS_SUS...
[ "public", "static", "String", "getStatusAsString", "(", "int", "status", ")", "{", "if", "(", "status", "==", "STATUS_PENDING", ")", "{", "return", "\"PENDING\"", ";", "}", "else", "if", "(", "status", "==", "STATUS_ACTIVE", ")", "{", "return", "\"ACTIVE\"",...
Convert the status of a GramJob from an integer to a string. This method is not typically called by users. @return string representing the status of the GramJob passed as an argument.
[ "Convert", "the", "status", "of", "a", "GramJob", "from", "an", "integer", "to", "a", "string", ".", "This", "method", "is", "not", "typically", "called", "by", "users", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/GramJob.java#L448-L467
99,627
jglobus/JGlobus
gram/src/main/java/org/globus/gram/CallbackHandler.java
CallbackHandler.registerJob
public void registerJob(GramJob job) { String id = job.getIDAsString(); _jobs.put(id, job); }
java
public void registerJob(GramJob job) { String id = job.getIDAsString(); _jobs.put(id, job); }
[ "public", "void", "registerJob", "(", "GramJob", "job", ")", "{", "String", "id", "=", "job", ".", "getIDAsString", "(", ")", ";", "_jobs", ".", "put", "(", "id", ",", "job", ")", ";", "}" ]
Registers gram job to listen for status updates @param job gram job
[ "Registers", "gram", "job", "to", "listen", "for", "status", "updates" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/CallbackHandler.java#L87-L90
99,628
jglobus/JGlobus
gram/src/main/java/org/globus/gram/CallbackHandler.java
CallbackHandler.unregisterJob
public void unregisterJob(GramJob job) { String id = job.getIDAsString(); _jobs.remove(id); }
java
public void unregisterJob(GramJob job) { String id = job.getIDAsString(); _jobs.remove(id); }
[ "public", "void", "unregisterJob", "(", "GramJob", "job", ")", "{", "String", "id", "=", "job", ".", "getIDAsString", "(", ")", ";", "_jobs", ".", "remove", "(", "id", ")", ";", "}" ]
Unregisters gram job from listening to status updates @param job gram job
[ "Unregisters", "gram", "job", "from", "listening", "to", "status", "updates" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/CallbackHandler.java#L96-L99
99,629
jglobus/JGlobus
gss/src/main/java/org/globus/gsi/gssapi/auth/HostOrSelfAuthorization.java
HostOrSelfAuthorization.authorize
public void authorize(GSSContext context, String host) throws AuthorizationException { logger.debug("Authorization: HOST/SELF"); try { GSSName expected = this.hostAuthz.getExpectedName(null, host); GSSName target = null; if (context.isInitiator()) { target = con...
java
public void authorize(GSSContext context, String host) throws AuthorizationException { logger.debug("Authorization: HOST/SELF"); try { GSSName expected = this.hostAuthz.getExpectedName(null, host); GSSName target = null; if (context.isInitiator()) { target = con...
[ "public", "void", "authorize", "(", "GSSContext", "context", ",", "String", "host", ")", "throws", "AuthorizationException", "{", "logger", ".", "debug", "(", "\"Authorization: HOST/SELF\"", ")", ";", "try", "{", "GSSName", "expected", "=", "this", ".", "hostAut...
Performs host authorization. If that fails, performs self authorization
[ "Performs", "host", "authorization", ".", "If", "that", "fails", "performs", "self", "authorization" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gss/src/main/java/org/globus/gsi/gssapi/auth/HostOrSelfAuthorization.java#L61-L92
99,630
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509ExtensionSet.java
X509ExtensionSet.add
public X509Extension add(X509Extension extension) { if (extension == null) { throw new IllegalArgumentException(i18n .getMessage("extensionNull")); } return (X509Extension)this.extensions.put(extension.getOid(), extension); }
java
public X509Extension add(X509Extension extension) { if (extension == null) { throw new IllegalArgumentException(i18n .getMessage("extensionNull")); } return (X509Extension)this.extensions.put(extension.getOid(), extension); }
[ "public", "X509Extension", "add", "(", "X509Extension", "extension", ")", "{", "if", "(", "extension", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "i18n", ".", "getMessage", "(", "\"extensionNull\"", ")", ")", ";", "}", "return", ...
Adds a X509Extension object to this set. @param extension the extension to add @return an extension that was removed with the same oid as the new extension. Null, if none existed before.
[ "Adds", "a", "X509Extension", "object", "to", "this", "set", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509ExtensionSet.java#L47-L54
99,631
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/X509ExtensionSet.java
X509ExtensionSet.get
public X509Extension get(String oid) { if (oid == null) { throw new IllegalArgumentException(i18n.getMessage("oidNull")); } return (X509Extension)this.extensions.get(oid); }
java
public X509Extension get(String oid) { if (oid == null) { throw new IllegalArgumentException(i18n.getMessage("oidNull")); } return (X509Extension)this.extensions.get(oid); }
[ "public", "X509Extension", "get", "(", "String", "oid", ")", "{", "if", "(", "oid", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "i18n", ".", "getMessage", "(", "\"oidNull\"", ")", ")", ";", "}", "return", "(", "X509Extension", ...
Retrieves X509Extension by given oid. @param oid the oid of the extension to retrieve. @return the extension with the specified oid. Can be null if there is no extension with such oid.
[ "Retrieves", "X509Extension", "by", "given", "oid", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/X509ExtensionSet.java#L63-L68
99,632
jglobus/JGlobus
gss/src/main/java/org/globus/gsi/gssapi/GlobusGSSName.java
GlobusGSSName.getHostBasedServiceCN
protected String getHostBasedServiceCN(boolean last) { if (hostBasedServiceCN == null) { String dn = name.getName(); int cnStart; if (last) { // use the last instance of CN in the DN cnStart = dn.lastIndexOf("CN=") + 3; } else { ...
java
protected String getHostBasedServiceCN(boolean last) { if (hostBasedServiceCN == null) { String dn = name.getName(); int cnStart; if (last) { // use the last instance of CN in the DN cnStart = dn.lastIndexOf("CN=") + 3; } else { ...
[ "protected", "String", "getHostBasedServiceCN", "(", "boolean", "last", ")", "{", "if", "(", "hostBasedServiceCN", "==", "null", ")", "{", "String", "dn", "=", "name", ".", "getName", "(", ")", ";", "int", "cnStart", ";", "if", "(", "last", ")", "{", "...
Returns the CN corresponding to the host part of the DN @param last true if the CN is assumed to be the last CN attribute in the RFC 2253 formatted DN, else false to assume it is the first DN attribute @return the CN of the host based service
[ "Returns", "the", "CN", "corresponding", "to", "the", "host", "part", "of", "the", "DN" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gss/src/main/java/org/globus/gsi/gssapi/GlobusGSSName.java#L343-L377
99,633
jglobus/JGlobus
gram/src/main/java/org/globus/rsl/Value.java
Value.concat
public void concat(Value value) { if (concatValue != null) { concatValue.concat(value); } else { concatValue = value; } }
java
public void concat(Value value) { if (concatValue != null) { concatValue.concat(value); } else { concatValue = value; } }
[ "public", "void", "concat", "(", "Value", "value", ")", "{", "if", "(", "concatValue", "!=", "null", ")", "{", "concatValue", ".", "concat", "(", "value", ")", ";", "}", "else", "{", "concatValue", "=", "value", ";", "}", "}" ]
Appends the specified value to the end of the chain of concatinated values. That is, if this value has no concatinated value then set the specified value as the concatinated value. If this value already has a concatinated value then append the specified value to that concatinated value. @param value the value to conca...
[ "Appends", "the", "specified", "value", "to", "the", "end", "of", "the", "chain", "of", "concatinated", "values", ".", "That", "is", "if", "this", "value", "has", "no", "concatinated", "value", "then", "set", "the", "specified", "value", "as", "the", "conc...
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/rsl/Value.java#L107-L113
99,634
jglobus/JGlobus
gram/src/main/java/org/globus/rsl/Value.java
Value.evaluate
public String evaluate(Map symbolTable) throws RslEvaluationException { if (concatValue == null) { return value; } else { StringBuffer buf = new StringBuffer(value); buf.append(concatValue.evaluate(symbolTable)); return buf.toString(); } }
java
public String evaluate(Map symbolTable) throws RslEvaluationException { if (concatValue == null) { return value; } else { StringBuffer buf = new StringBuffer(value); buf.append(concatValue.evaluate(symbolTable)); return buf.toString(); } }
[ "public", "String", "evaluate", "(", "Map", "symbolTable", ")", "throws", "RslEvaluationException", "{", "if", "(", "concatValue", "==", "null", ")", "{", "return", "value", ";", "}", "else", "{", "StringBuffer", "buf", "=", "new", "StringBuffer", "(", "valu...
Evaluates the value with the specified symbol table. In this case the function just returns the string representation of the actual value. No symbol table lookups are performed. @param symbolTable the symbol table to evaluate the value against. @return an evaluated string. @exception RslEvaluationException If an error...
[ "Evaluates", "the", "value", "with", "the", "specified", "symbol", "table", ".", "In", "this", "case", "the", "function", "just", "returns", "the", "string", "representation", "of", "the", "actual", "value", ".", "No", "symbol", "table", "lookups", "are", "p...
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/rsl/Value.java#L128-L137
99,635
jglobus/JGlobus
gram/src/main/java/org/globus/rsl/Value.java
Value.toRSL
public void toRSL(StringBuffer buf, boolean explicitConcat) { if ( explicitConcat ) { buf.append( quotify( value ) ); } else { buf.append( value ); } if (concatValue == null) { return; } if (explicitConcat) { buf.append(" # "); } concatValue.toRSL(buf, explici...
java
public void toRSL(StringBuffer buf, boolean explicitConcat) { if ( explicitConcat ) { buf.append( quotify( value ) ); } else { buf.append( value ); } if (concatValue == null) { return; } if (explicitConcat) { buf.append(" # "); } concatValue.toRSL(buf, explici...
[ "public", "void", "toRSL", "(", "StringBuffer", "buf", ",", "boolean", "explicitConcat", ")", "{", "if", "(", "explicitConcat", ")", "{", "buf", ".", "append", "(", "quotify", "(", "value", ")", ")", ";", "}", "else", "{", "buf", ".", "append", "(", ...
Produces a RSL representation of this value. @param buf buffer to add the RSL representation to. @param explicitConcat if true explicit concatination will be used in RSL strings.
[ "Produces", "a", "RSL", "representation", "of", "this", "value", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/rsl/Value.java#L178-L195
99,636
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.ping
public static void ping(GSSCredential cred, String resourceManagerContact) throws GramException, GSSException { ResourceManagerContact rmc = new ResourceManagerContact(resourceManagerContact); Socket socket = gatekeeperConnect(cred, rmc, false, false); HttpResponse hd = null; try { OutputStream out = ...
java
public static void ping(GSSCredential cred, String resourceManagerContact) throws GramException, GSSException { ResourceManagerContact rmc = new ResourceManagerContact(resourceManagerContact); Socket socket = gatekeeperConnect(cred, rmc, false, false); HttpResponse hd = null; try { OutputStream out = ...
[ "public", "static", "void", "ping", "(", "GSSCredential", "cred", ",", "String", "resourceManagerContact", ")", "throws", "GramException", ",", "GSSException", "{", "ResourceManagerContact", "rmc", "=", "new", "ResourceManagerContact", "(", "resourceManagerContact", ")"...
Performs ping operation on the gatekeeper with specified user credentials. Verifies if the user is authorized to submit a job to that gatekeeper. @throws GramException if an error occurs or user in unauthorized @param cred user credentials @param resourceManagerContact resource manager contact
[ "Performs", "ping", "operation", "on", "the", "gatekeeper", "with", "specified", "user", "credentials", ".", "Verifies", "if", "the", "user", "is", "authorized", "to", "submit", "a", "job", "to", "that", "gatekeeper", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L209-L243
99,637
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.request
public static void request(String resourceManagerContact, GramJob job) throws GramException, GSSException { request(resourceManagerContact, job, false); }
java
public static void request(String resourceManagerContact, GramJob job) throws GramException, GSSException { request(resourceManagerContact, job, false); }
[ "public", "static", "void", "request", "(", "String", "resourceManagerContact", ",", "GramJob", "job", ")", "throws", "GramException", ",", "GSSException", "{", "request", "(", "resourceManagerContact", ",", "job", ",", "false", ")", ";", "}" ]
Submits a GramJob to specified gatekeeper as an interactive job. Performs limited delegation. @throws GramException if an error occurs during submisson @param resourceManagerContact resource manager contact @param job gram job
[ "Submits", "a", "GramJob", "to", "specified", "gatekeeper", "as", "an", "interactive", "job", ".", "Performs", "limited", "delegation", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L253-L257
99,638
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.request
public static void request(String resourceManagerContact, GramJob job, boolean batchJob) throws GramException, GSSException { request(resourceManagerContact, job, batchJob, true); }
java
public static void request(String resourceManagerContact, GramJob job, boolean batchJob) throws GramException, GSSException { request(resourceManagerContact, job, batchJob, true); }
[ "public", "static", "void", "request", "(", "String", "resourceManagerContact", ",", "GramJob", "job", ",", "boolean", "batchJob", ")", "throws", "GramException", ",", "GSSException", "{", "request", "(", "resourceManagerContact", ",", "job", ",", "batchJob", ",",...
Submits a GramJob to specified gatekeeper as a interactive or batch job. Performs limited delegation. @throws GramException if an error occurs during submisson @param resourceManagerContact resource manager contact @param job gram job @param batchJob true if batch job, interactive otherwise
[ "Submits", "a", "GramJob", "to", "specified", "gatekeeper", "as", "a", "interactive", "or", "batch", "job", ".", "Performs", "limited", "delegation", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L268-L273
99,639
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.request
public static void request(String resourceManagerContact, GramJob job, boolean batchJob, boolean limitedDelegation) throws GramException, GSSException { GSSCredential cred = getJobCredentials(job); // at this point proxy cannot be null String callbackURL = null; CallbackHandle...
java
public static void request(String resourceManagerContact, GramJob job, boolean batchJob, boolean limitedDelegation) throws GramException, GSSException { GSSCredential cred = getJobCredentials(job); // at this point proxy cannot be null String callbackURL = null; CallbackHandle...
[ "public", "static", "void", "request", "(", "String", "resourceManagerContact", ",", "GramJob", "job", ",", "boolean", "batchJob", ",", "boolean", "limitedDelegation", ")", "throws", "GramException", ",", "GSSException", "{", "GSSCredential", "cred", "=", "getJobCre...
Submits a GramJob to specified gatekeeper as a interactive or batch job. @throws GramException if an error occurs during submisson @param resourceManagerContact resource manager contact @param job gram job @param batchJob true if batch job, interactive otherwise. @param limitedDelegation true for limited delegation, f...
[ "Submits", "a", "GramJob", "to", "specified", "gatekeeper", "as", "a", "interactive", "or", "batch", "job", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L290-L364
99,640
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.renew
public static void renew(GramJob job, GSSCredential newCred) throws GramException, GSSException { renew(job, newCred, true); }
java
public static void renew(GramJob job, GSSCredential newCred) throws GramException, GSSException { renew(job, newCred, true); }
[ "public", "static", "void", "renew", "(", "GramJob", "job", ",", "GSSCredential", "newCred", ")", "throws", "GramException", ",", "GSSException", "{", "renew", "(", "job", ",", "newCred", ",", "true", ")", ";", "}" ]
Requests that a globus job manager accept newly delegated credentials. Uses limited delegation. @param job The job whose credentials are to be renewed/refreshed @param newCred The credentials to use in the delegation process @throws GSSException if a GSSAPI error occurs @throws GramException if a connection/communicat...
[ "Requests", "that", "a", "globus", "job", "manager", "accept", "newly", "delegated", "credentials", ".", "Uses", "limited", "delegation", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L522-L525
99,641
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.cancel
public static void cancel(GramJob job) throws GramException, GSSException { GlobusURL jobURL = job.getID(); if (jobURL == null) { throw new GramException(GramException.ERROR_JOB_CONTACT_NOT_SET); } GSSCredential cred = getJobCredentials(job); String msg = GRAMProtocol.CANCEL_JOB(jobURL.getURL(), ...
java
public static void cancel(GramJob job) throws GramException, GSSException { GlobusURL jobURL = job.getID(); if (jobURL == null) { throw new GramException(GramException.ERROR_JOB_CONTACT_NOT_SET); } GSSCredential cred = getJobCredentials(job); String msg = GRAMProtocol.CANCEL_JOB(jobURL.getURL(), ...
[ "public", "static", "void", "cancel", "(", "GramJob", "job", ")", "throws", "GramException", ",", "GSSException", "{", "GlobusURL", "jobURL", "=", "job", ".", "getID", "(", ")", ";", "if", "(", "jobURL", "==", "null", ")", "{", "throw", "new", "GramExcep...
This function cancels an already running job. @throws GramException if an error occurs during cancel @param job job to be canceled
[ "This", "function", "cancels", "an", "already", "running", "job", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L610-L634
99,642
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.jobSignal
public static int jobSignal(GramJob job, int signal, String arg) throws GramException, GSSException { GlobusURL jobURL = job.getID(); GSSCredential cred = getJobCredentials(job); String msg = GRAMProtocol.SIGNAL(jobURL.getURL(), jobURL.getHost(), signal, arg); GatekeeperReply hd = null; hd ...
java
public static int jobSignal(GramJob job, int signal, String arg) throws GramException, GSSException { GlobusURL jobURL = job.getID(); GSSCredential cred = getJobCredentials(job); String msg = GRAMProtocol.SIGNAL(jobURL.getURL(), jobURL.getHost(), signal, arg); GatekeeperReply hd = null; hd ...
[ "public", "static", "int", "jobSignal", "(", "GramJob", "job", ",", "int", "signal", ",", "String", "arg", ")", "throws", "GramException", ",", "GSSException", "{", "GlobusURL", "jobURL", "=", "job", ".", "getID", "(", ")", ";", "GSSCredential", "cred", "=...
This function sends a signal to a job. @throws GramException if an error occurs during cancel @param job the signaled job @param signal type of the signal @param arg argument of the signal
[ "This", "function", "sends", "a", "signal", "to", "a", "job", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L686-L725
99,643
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.unregisterListener
public static void unregisterListener(GramJob job) throws GramException, GSSException { CallbackHandler handler; GSSCredential cred = getJobCredentials(job); handler = initCallbackHandler(cred); unregisterListener(job, handler); }
java
public static void unregisterListener(GramJob job) throws GramException, GSSException { CallbackHandler handler; GSSCredential cred = getJobCredentials(job); handler = initCallbackHandler(cred); unregisterListener(job, handler); }
[ "public", "static", "void", "unregisterListener", "(", "GramJob", "job", ")", "throws", "GramException", ",", "GSSException", "{", "CallbackHandler", "handler", ";", "GSSCredential", "cred", "=", "getJobCredentials", "(", "job", ")", ";", "handler", "=", "initCall...
This function unregisters the job from callback listener. The job status will not be updated. @throws GramException if an error occurs during unregistering @param job the job
[ "This", "function", "unregisters", "the", "job", "from", "callback", "listener", ".", "The", "job", "status", "will", "not", "be", "updated", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L777-L787
99,644
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.deactivateAllCallbackHandlers
public static void deactivateAllCallbackHandlers() { synchronized(callbackHandlers) { Enumeration e = callbackHandlers.elements(); while(e.hasMoreElements()) { CallbackHandler handler = (CallbackHandler)e.nextElement(); handler.shutdown(); } callbackHandlers.clear(); } }
java
public static void deactivateAllCallbackHandlers() { synchronized(callbackHandlers) { Enumeration e = callbackHandlers.elements(); while(e.hasMoreElements()) { CallbackHandler handler = (CallbackHandler)e.nextElement(); handler.shutdown(); } callbackHandlers.clear(); } }
[ "public", "static", "void", "deactivateAllCallbackHandlers", "(", ")", "{", "synchronized", "(", "callbackHandlers", ")", "{", "Enumeration", "e", "=", "callbackHandlers", ".", "elements", "(", ")", ";", "while", "(", "e", ".", "hasMoreElements", "(", ")", ")"...
Deactivates all callback handlers.
[ "Deactivates", "all", "callback", "handlers", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L810-L819
99,645
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.deactivateCallbackHandler
public static CallbackHandler deactivateCallbackHandler(GSSCredential cred) { if (cred == null) { return null; } CallbackHandler handler = (CallbackHandler)callbackHandlers.remove(cred); if (handler == null) { return null; } handler.shutdown(); return handler; }
java
public static CallbackHandler deactivateCallbackHandler(GSSCredential cred) { if (cred == null) { return null; } CallbackHandler handler = (CallbackHandler)callbackHandlers.remove(cred); if (handler == null) { return null; } handler.shutdown(); return handler; }
[ "public", "static", "CallbackHandler", "deactivateCallbackHandler", "(", "GSSCredential", "cred", ")", "{", "if", "(", "cred", "==", "null", ")", "{", "return", "null", ";", "}", "CallbackHandler", "handler", "=", "(", "CallbackHandler", ")", "callbackHandlers", ...
Deactivates a callback handler for a given credential. @param cred the credential of the callback handler. @return the callback handler that was deactivated. Null, if no callback handler is associated with the credential
[ "Deactivates", "a", "callback", "handler", "for", "a", "given", "credential", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L828-L839
99,646
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.debug
private static void debug(String header, GatekeeperReply reply) { if (logger.isTraceEnabled()) { logger.trace(header); logger.trace(reply.toString()); } }
java
private static void debug(String header, GatekeeperReply reply) { if (logger.isTraceEnabled()) { logger.trace(header); logger.trace(reply.toString()); } }
[ "private", "static", "void", "debug", "(", "String", "header", ",", "GatekeeperReply", "reply", ")", "{", "if", "(", "logger", ".", "isTraceEnabled", "(", ")", ")", "{", "logger", ".", "trace", "(", "header", ")", ";", "logger", ".", "trace", "(", "rep...
Debug function for displaying the gatekeeper reply.
[ "Debug", "function", "for", "displaying", "the", "gatekeeper", "reply", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L894-L899
99,647
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.debug
private static void debug(String header, HttpResponse response) { if (logger.isTraceEnabled()) { logger.trace(header); logger.trace(response.toString()); } }
java
private static void debug(String header, HttpResponse response) { if (logger.isTraceEnabled()) { logger.trace(header); logger.trace(response.toString()); } }
[ "private", "static", "void", "debug", "(", "String", "header", ",", "HttpResponse", "response", ")", "{", "if", "(", "logger", ".", "isTraceEnabled", "(", ")", ")", "{", "logger", ".", "trace", "(", "header", ")", ";", "logger", ".", "trace", "(", "res...
Debug function for displaying HTTP responses.
[ "Debug", "function", "for", "displaying", "HTTP", "responses", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L904-L909
99,648
jglobus/JGlobus
gram/src/main/java/org/globus/gram/Gram.java
Gram.debug
private static void debug(String header, String msg) { if (logger.isTraceEnabled()) { logger.trace(header); logger.trace(msg); } }
java
private static void debug(String header, String msg) { if (logger.isTraceEnabled()) { logger.trace(header); logger.trace(msg); } }
[ "private", "static", "void", "debug", "(", "String", "header", ",", "String", "msg", ")", "{", "if", "(", "logger", ".", "isTraceEnabled", "(", ")", ")", "{", "logger", ".", "trace", "(", "header", ")", ";", "logger", ".", "trace", "(", "msg", ")", ...
A general debug message that prints the header and msg when the debug level is smaler than 3 @param header The header to be printed @param msg The message to be printed
[ "A", "general", "debug", "message", "that", "prints", "the", "header", "and", "msg", "when", "the", "debug", "level", "is", "smaler", "than", "3" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/Gram.java#L917-L922
99,649
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/OpenSSLKey.java
OpenSSLKey.decrypt
public void decrypt(byte[] password) throws GeneralSecurityException { if (!isEncrypted()) { return; } byte[] enc = Base64.decode(this.encodedKey); SecretKeySpec key = getSecretKey(password, this.initializationVector.getIV()); Cipher cipher = getCipher(); c...
java
public void decrypt(byte[] password) throws GeneralSecurityException { if (!isEncrypted()) { return; } byte[] enc = Base64.decode(this.encodedKey); SecretKeySpec key = getSecretKey(password, this.initializationVector.getIV()); Cipher cipher = getCipher(); c...
[ "public", "void", "decrypt", "(", "byte", "[", "]", "password", ")", "throws", "GeneralSecurityException", "{", "if", "(", "!", "isEncrypted", "(", ")", ")", "{", "return", ";", "}", "byte", "[", "]", "enc", "=", "Base64", ".", "decode", "(", "this", ...
Decrypts the private key with given password. Does nothing if the key is not encrypted. @param password password to decrypt the key with. @throws GeneralSecurityException whenever an error occurs during decryption.
[ "Decrypts", "the", "private", "key", "with", "given", "password", ".", "Does", "nothing", "if", "the", "key", "is", "not", "encrypted", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/OpenSSLKey.java#L271-L288
99,650
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/OpenSSLKey.java
OpenSSLKey.encrypt
public void encrypt(byte[] password) throws GeneralSecurityException { if (isEncrypted()) { return; } if (this.encAlg == null) { setEncryptionAlgorithm("DES-EDE3-CBC"); } if (this.ivData == null) { generateIV(); } Key key = ...
java
public void encrypt(byte[] password) throws GeneralSecurityException { if (isEncrypted()) { return; } if (this.encAlg == null) { setEncryptionAlgorithm("DES-EDE3-CBC"); } if (this.ivData == null) { generateIV(); } Key key = ...
[ "public", "void", "encrypt", "(", "byte", "[", "]", "password", ")", "throws", "GeneralSecurityException", "{", "if", "(", "isEncrypted", "(", ")", ")", "{", "return", ";", "}", "if", "(", "this", ".", "encAlg", "==", "null", ")", "{", "setEncryptionAlgo...
Encrypts the private key with given password. Does nothing if the key is encrypted already. @param password password to encrypt the key with. @throws GeneralSecurityException whenever an error occurs during encryption.
[ "Encrypts", "the", "private", "key", "with", "given", "password", ".", "Does", "nothing", "if", "the", "key", "is", "encrypted", "already", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/OpenSSLKey.java#L308-L332
99,651
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/OpenSSLKey.java
OpenSSLKey.writeTo
public void writeTo(String file) throws IOException { File privateKey = FileUtil.createFile(file); // JGLOBUS-96 try{ privateKey.setReadable(false, true);//setOwnerAccessOnly(file); privateKey.setWritable(false, true);//setOwnerAccessOnly(file); }catch(SecurityException e)...
java
public void writeTo(String file) throws IOException { File privateKey = FileUtil.createFile(file); // JGLOBUS-96 try{ privateKey.setReadable(false, true);//setOwnerAccessOnly(file); privateKey.setWritable(false, true);//setOwnerAccessOnly(file); }catch(SecurityException e)...
[ "public", "void", "writeTo", "(", "String", "file", ")", "throws", "IOException", "{", "File", "privateKey", "=", "FileUtil", ".", "createFile", "(", "file", ")", ";", "// JGLOBUS-96", "try", "{", "privateKey", ".", "setReadable", "(", "false", ",", "true", ...
Writes the private key to the specified file in PEM format. If the key was encrypted it will be encoded as an encrypted RSA key. If not, it will be encoded as a regular RSA key. @param file file to write the key to. @throws IOException if I/O problems writing the key
[ "Writes", "the", "private", "key", "to", "the", "specified", "file", "in", "PEM", "format", ".", "If", "the", "key", "was", "encrypted", "it", "will", "be", "encoded", "as", "an", "encrypted", "RSA", "key", ".", "If", "not", "it", "will", "be", "encode...
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/OpenSSLKey.java#L386-L402
99,652
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/OpenSSLKey.java
OpenSSLKey.objectsEquals
private static boolean objectsEquals(Object a, Object b) { return (a == b) || (a != null && a.equals(b)); }
java
private static boolean objectsEquals(Object a, Object b) { return (a == b) || (a != null && a.equals(b)); }
[ "private", "static", "boolean", "objectsEquals", "(", "Object", "a", ",", "Object", "b", ")", "{", "return", "(", "a", "==", "b", ")", "||", "(", "a", "!=", "null", "&&", "a", ".", "equals", "(", "b", ")", ")", ";", "}" ]
Java 7 is adopted
[ "Java", "7", "is", "adopted" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/OpenSSLKey.java#L607-L609
99,653
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/dc/SocketPool.java
SocketPool.add
public synchronized void add(SocketBox sb) { int status = ((ManagedSocketBox) sb).getStatus(); if (allSockets.containsKey(sb)) { throw new IllegalArgumentException("This socket already exists in the socket pool."); } allSockets.put(sb, sb); if (status == ManagedSo...
java
public synchronized void add(SocketBox sb) { int status = ((ManagedSocketBox) sb).getStatus(); if (allSockets.containsKey(sb)) { throw new IllegalArgumentException("This socket already exists in the socket pool."); } allSockets.put(sb, sb); if (status == ManagedSo...
[ "public", "synchronized", "void", "add", "(", "SocketBox", "sb", ")", "{", "int", "status", "=", "(", "(", "ManagedSocketBox", ")", "sb", ")", ".", "getStatus", "(", ")", ";", "if", "(", "allSockets", ".", "containsKey", "(", "sb", ")", ")", "{", "th...
add socketBox to the pool. Depending on its state, it will be added to free or busy sockets.
[ "add", "socketBox", "to", "the", "pool", ".", "Depending", "on", "its", "state", "it", "will", "be", "added", "to", "free", "or", "busy", "sockets", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/dc/SocketPool.java#L45-L70
99,654
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/dc/SocketPool.java
SocketPool.remove
public synchronized void remove(SocketBox sb) { int status = ((ManagedSocketBox) sb).getStatus(); if (!allSockets.containsKey(sb)) { throw new IllegalArgumentException("This socket does not seem to exist in the socket pool."); } allSockets.remove(sb); if (status =...
java
public synchronized void remove(SocketBox sb) { int status = ((ManagedSocketBox) sb).getStatus(); if (!allSockets.containsKey(sb)) { throw new IllegalArgumentException("This socket does not seem to exist in the socket pool."); } allSockets.remove(sb); if (status =...
[ "public", "synchronized", "void", "remove", "(", "SocketBox", "sb", ")", "{", "int", "status", "=", "(", "(", "ManagedSocketBox", ")", "sb", ")", ".", "getStatus", "(", ")", ";", "if", "(", "!", "allSockets", ".", "containsKey", "(", "sb", ")", ")", ...
remove socketBox from the pool, remove all references to it
[ "remove", "socketBox", "from", "the", "pool", "remove", "all", "references", "to", "it" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/dc/SocketPool.java#L73-L95
99,655
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/dc/SocketPool.java
SocketPool.applyToAll
public synchronized void applyToAll(SocketOperator op) throws Exception { Enumeration keys = allSockets.keys(); while (keys.hasMoreElements()) { SocketBox myBox = (SocketBox) keys.nextElement(); op.operate(myBox); } }
java
public synchronized void applyToAll(SocketOperator op) throws Exception { Enumeration keys = allSockets.keys(); while (keys.hasMoreElements()) { SocketBox myBox = (SocketBox) keys.nextElement(); op.operate(myBox); } }
[ "public", "synchronized", "void", "applyToAll", "(", "SocketOperator", "op", ")", "throws", "Exception", "{", "Enumeration", "keys", "=", "allSockets", ".", "keys", "(", ")", ";", "while", "(", "keys", ".", "hasMoreElements", "(", ")", ")", "{", "SocketBox",...
Apply the suplied callback to all socketBoxes.
[ "Apply", "the", "suplied", "callback", "to", "all", "socketBoxes", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/dc/SocketPool.java#L169-L175
99,656
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/dc/SocketPool.java
SocketPool.flush
public synchronized void flush() throws IOException { Enumeration keys = allSockets.keys(); // close all sockets before removing them while (keys.hasMoreElements()) { SocketBox myBox = (SocketBox) keys.nextElement(); if (myBox != null) { myBox.setSocket(n...
java
public synchronized void flush() throws IOException { Enumeration keys = allSockets.keys(); // close all sockets before removing them while (keys.hasMoreElements()) { SocketBox myBox = (SocketBox) keys.nextElement(); if (myBox != null) { myBox.setSocket(n...
[ "public", "synchronized", "void", "flush", "(", ")", "throws", "IOException", "{", "Enumeration", "keys", "=", "allSockets", ".", "keys", "(", ")", ";", "// close all sockets before removing them", "while", "(", "keys", ".", "hasMoreElements", "(", ")", ")", "{"...
Forcibly close all sockets, and remove them from the pool.
[ "Forcibly", "close", "all", "sockets", "and", "remove", "them", "from", "the", "pool", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/dc/SocketPool.java#L180-L194
99,657
jglobus/JGlobus
gram/src/main/java/org/globus/gram/GramAttributes.java
GramAttributes.isDryRun
public boolean isDryRun() { String run = getSingle("dryrun"); if (run == null) return false; if (run.equalsIgnoreCase("yes")) return true; return false; }
java
public boolean isDryRun() { String run = getSingle("dryrun"); if (run == null) return false; if (run.equalsIgnoreCase("yes")) return true; return false; }
[ "public", "boolean", "isDryRun", "(", ")", "{", "String", "run", "=", "getSingle", "(", "\"dryrun\"", ")", ";", "if", "(", "run", "==", "null", ")", "return", "false", ";", "if", "(", "run", ".", "equalsIgnoreCase", "(", "\"yes\"", ")", ")", "return", ...
Checks if dryryn is enabled. @return true only if dryrun is enabled. False, otherwise.
[ "Checks", "if", "dryryn", "is", "enabled", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/GramAttributes.java#L187-L192
99,658
jglobus/JGlobus
gram/src/main/java/org/globus/gram/GramAttributes.java
GramAttributes.setJobType
public void setJobType(int jobType) { String type = null; switch(jobType) { case JOBTYPE_SINGLE: type = "single"; break; case JOBTYPE_MULTIPLE: type = "multiple"; break; case JOBTYPE_MPI: type = "mpi"; break; case JOBTYPE_CONDOR: type = "condor"; break; } if (type != null) { set("jobtyp...
java
public void setJobType(int jobType) { String type = null; switch(jobType) { case JOBTYPE_SINGLE: type = "single"; break; case JOBTYPE_MULTIPLE: type = "multiple"; break; case JOBTYPE_MPI: type = "mpi"; break; case JOBTYPE_CONDOR: type = "condor"; break; } if (type != null) { set("jobtyp...
[ "public", "void", "setJobType", "(", "int", "jobType", ")", "{", "String", "type", "=", "null", ";", "switch", "(", "jobType", ")", "{", "case", "JOBTYPE_SINGLE", ":", "type", "=", "\"single\"", ";", "break", ";", "case", "JOBTYPE_MULTIPLE", ":", "type", ...
Sets a job type. @param jobType type of the job: One of the following: SINGLE, MULTIPLE, MPI, or CONDOR.
[ "Sets", "a", "job", "type", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/GramAttributes.java#L236-L251
99,659
jglobus/JGlobus
gram/src/main/java/org/globus/gram/GramAttributes.java
GramAttributes.getJobType
public int getJobType() { String jobType = getSingle("jobtype"); if (jobType == null) return -1; if (jobType.equalsIgnoreCase("single")) { return JOBTYPE_SINGLE; } else if (jobType.equalsIgnoreCase("multiple")) { return JOBTYPE_MULTIPLE; } else if (jobType.equalsIgnoreCase("mpi")) { return JOBTYPE_M...
java
public int getJobType() { String jobType = getSingle("jobtype"); if (jobType == null) return -1; if (jobType.equalsIgnoreCase("single")) { return JOBTYPE_SINGLE; } else if (jobType.equalsIgnoreCase("multiple")) { return JOBTYPE_MULTIPLE; } else if (jobType.equalsIgnoreCase("mpi")) { return JOBTYPE_M...
[ "public", "int", "getJobType", "(", ")", "{", "String", "jobType", "=", "getSingle", "(", "\"jobtype\"", ")", ";", "if", "(", "jobType", "==", "null", ")", "return", "-", "1", ";", "if", "(", "jobType", ".", "equalsIgnoreCase", "(", "\"single\"", ")", ...
Returns type of the job. @return job type. -1 if not set or job type is unknown.
[ "Returns", "type", "of", "the", "job", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gram/src/main/java/org/globus/gram/GramAttributes.java#L259-L273
99,660
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java
GridMap.load
public boolean load(File file) throws IOException { InputStream in = null; try { in = new FileInputStream(file); this.file = file; this.lastModified = file.lastModified(); return load(in); } finally { if (in != null) { ...
java
public boolean load(File file) throws IOException { InputStream in = null; try { in = new FileInputStream(file); this.file = file; this.lastModified = file.lastModified(); return load(in); } finally { if (in != null) { ...
[ "public", "boolean", "load", "(", "File", "file", ")", "throws", "IOException", "{", "InputStream", "in", "=", "null", ";", "try", "{", "in", "=", "new", "FileInputStream", "(", "file", ")", ";", "this", ".", "file", "=", "file", ";", "this", ".", "l...
Loads grid map definition from a given file. @param file the grid map file @exception IOException in case of I/O error or when there are parsing errors in the file (only when errors are not ignored). @return <tt>true</tt> if the file was parsed and loaded successfully. <tt>False</tt> otherwise.
[ "Loads", "grid", "map", "definition", "from", "a", "given", "file", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java#L136-L149
99,661
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java
GridMap.load
public boolean load(InputStream input) throws IOException { boolean success = true; BufferedReader reader = new BufferedReader(new InputStreamReader(input)); Map localMap = new HashMap(); GridMapEntry entry; QuotedStringTokenizer tokenizer; StringTok...
java
public boolean load(InputStream input) throws IOException { boolean success = true; BufferedReader reader = new BufferedReader(new InputStreamReader(input)); Map localMap = new HashMap(); GridMapEntry entry; QuotedStringTokenizer tokenizer; StringTok...
[ "public", "boolean", "load", "(", "InputStream", "input", ")", "throws", "IOException", "{", "boolean", "success", "=", "true", ";", "BufferedReader", "reader", "=", "new", "BufferedReader", "(", "new", "InputStreamReader", "(", "input", ")", ")", ";", "Map", ...
Loads grid map file definition from a given input stream. The input stream is not closed in case of an error. @param input the input stream that contains the gridmap definitions. @exception IOException in case of I/O error or when there are parsing errors in the input (only when errors are not ignored). @return <tt>tr...
[ "Loads", "grid", "map", "file", "definition", "from", "a", "given", "input", "stream", ".", "The", "input", "stream", "is", "not", "closed", "in", "case", "of", "an", "error", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java#L186-L258
99,662
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java
GridMap.getUserID
public String getUserID(String globusID) { String [] ids = getUserIDs(globusID); if (ids != null && ids.length > 0) { return ids[0]; } else { return null; } }
java
public String getUserID(String globusID) { String [] ids = getUserIDs(globusID); if (ids != null && ids.length > 0) { return ids[0]; } else { return null; } }
[ "public", "String", "getUserID", "(", "String", "globusID", ")", "{", "String", "[", "]", "ids", "=", "getUserIDs", "(", "globusID", ")", ";", "if", "(", "ids", "!=", "null", "&&", "ids", ".", "length", ">", "0", ")", "{", "return", "ids", "[", "0"...
Returns first local user name mapped to the specified globusID. @param globusID globusID @return local user name for the specified globusID. Null if the globusID is not mapped to a local user name.
[ "Returns", "first", "local", "user", "name", "mapped", "to", "the", "specified", "globusID", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java#L269-L276
99,663
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java
GridMap.getUserIDs
public String[] getUserIDs(String globusID) { if (globusID == null) { throw new IllegalArgumentException(i18n .getMessage("globusIdNull")); } if (this.map == null) { return null; } GridMapEntry entry = (Grid...
java
public String[] getUserIDs(String globusID) { if (globusID == null) { throw new IllegalArgumentException(i18n .getMessage("globusIdNull")); } if (this.map == null) { return null; } GridMapEntry entry = (Grid...
[ "public", "String", "[", "]", "getUserIDs", "(", "String", "globusID", ")", "{", "if", "(", "globusID", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "i18n", ".", "getMessage", "(", "\"globusIdNull\"", ")", ")", ";", "}", "if", ...
Returns local user names mapped to the specified globusID. @param globusID globusID @return array of local user names for the specified globusID. Null if the globusID is not mapped to any local user name.
[ "Returns", "local", "user", "names", "mapped", "to", "the", "specified", "globusID", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java#L287-L299
99,664
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java
GridMap.checkUser
public boolean checkUser(String globusID, String userID) { if (globusID == null) { throw new IllegalArgumentException(i18n.getMessage("glousIdNull")); } if (userID == null) { throw new IllegalArgumentException(i18n.getMessage("userIdNull")); } if (this.ma...
java
public boolean checkUser(String globusID, String userID) { if (globusID == null) { throw new IllegalArgumentException(i18n.getMessage("glousIdNull")); } if (userID == null) { throw new IllegalArgumentException(i18n.getMessage("userIdNull")); } if (this.ma...
[ "public", "boolean", "checkUser", "(", "String", "globusID", ",", "String", "userID", ")", "{", "if", "(", "globusID", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "i18n", ".", "getMessage", "(", "\"glousIdNull\"", ")", ")", ";", ...
Checks if a given globus ID is associated with given local user account. @param globusID globus ID @param userID userID @return true if globus ID is associated with given local user account, false, otherwise.
[ "Checks", "if", "a", "given", "globus", "ID", "is", "associated", "with", "given", "local", "user", "account", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java#L310-L324
99,665
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java
GridMap.getGlobusID
public String getGlobusID(String userID) { if (userID == null) { throw new IllegalArgumentException(i18n.getMessage("userIdNull")); } if (this.map == null) { return null; } Iterator iter = this.map.entrySet().iterator(); Map.Entry mapEntry; ...
java
public String getGlobusID(String userID) { if (userID == null) { throw new IllegalArgumentException(i18n.getMessage("userIdNull")); } if (this.map == null) { return null; } Iterator iter = this.map.entrySet().iterator(); Map.Entry mapEntry; ...
[ "public", "String", "getGlobusID", "(", "String", "userID", ")", "{", "if", "(", "userID", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "i18n", ".", "getMessage", "(", "\"userIdNull\"", ")", ")", ";", "}", "if", "(", "this", "...
Returns globus ID associated with the specified local user name. @param userID local user name @return associated globus ID, null if there is not any.
[ "Returns", "globus", "ID", "associated", "with", "the", "specified", "local", "user", "name", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java#L334-L354
99,666
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java
GridMap.getAllGlobusID
public String[] getAllGlobusID(String userID) { if (userID == null) { throw new IllegalArgumentException(i18n.getMessage("userIdNull")); } if (this.map == null) { return null; } Vector v = new Vector(); Iterator iter = this.map.entrySet().iterat...
java
public String[] getAllGlobusID(String userID) { if (userID == null) { throw new IllegalArgumentException(i18n.getMessage("userIdNull")); } if (this.map == null) { return null; } Vector v = new Vector(); Iterator iter = this.map.entrySet().iterat...
[ "public", "String", "[", "]", "getAllGlobusID", "(", "String", "userID", ")", "{", "if", "(", "userID", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "i18n", ".", "getMessage", "(", "\"userIdNull\"", ")", ")", ";", "}", "if", "...
Returns all globus IDs associated with the specified local user name. @param userID local user name @return associated globus ID, null if there is not any.
[ "Returns", "all", "globus", "IDs", "associated", "with", "the", "specified", "local", "user", "name", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/gridmap/GridMap.java#L364-L397
99,667
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/trustmanager/DateValidityChecker.java
DateValidityChecker.invoke
public void invoke(X509Certificate cert, GSIConstants.CertificateType certType) throws CertPathValidatorException { try { cert.checkValidity(); } catch (CertificateExpiredException e) { throw new CertPathValidatorException( "Certificate " + cert.getSubjectDN()...
java
public void invoke(X509Certificate cert, GSIConstants.CertificateType certType) throws CertPathValidatorException { try { cert.checkValidity(); } catch (CertificateExpiredException e) { throw new CertPathValidatorException( "Certificate " + cert.getSubjectDN()...
[ "public", "void", "invoke", "(", "X509Certificate", "cert", ",", "GSIConstants", ".", "CertificateType", "certType", ")", "throws", "CertPathValidatorException", "{", "try", "{", "cert", ".", "checkValidity", "(", ")", ";", "}", "catch", "(", "CertificateExpiredEx...
Method that checks the time validity. Uses the standard Certificate.checkValidity method. @throws CertPathValidatorException If certificate has expired or is not yet valid.
[ "Method", "that", "checks", "the", "time", "validity", ".", "Uses", "the", "standard", "Certificate", ".", "checkValidity", "method", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/trustmanager/DateValidityChecker.java#L39-L49
99,668
jglobus/JGlobus
myproxy/src/main/java/org/globus/myproxy/MyProxy.java
MyProxy.info
public CredentialInfo info(GSSCredential credential, String username, String passphrase) throws MyProxyException { InfoParams request = new InfoParams(); request.setUserName(username); request.setPassphrase(passphrase); ...
java
public CredentialInfo info(GSSCredential credential, String username, String passphrase) throws MyProxyException { InfoParams request = new InfoParams(); request.setUserName(username); request.setPassphrase(passphrase); ...
[ "public", "CredentialInfo", "info", "(", "GSSCredential", "credential", ",", "String", "username", ",", "String", "passphrase", ")", "throws", "MyProxyException", "{", "InfoParams", "request", "=", "new", "InfoParams", "(", ")", ";", "request", ".", "setUserName",...
Retrieves credential information from MyProxy server. Only the information of the default credential is returned by this operation. @param credential The local GSI credentials to use for authentication. @param username The username of the credentials to remove. @param passphrase The passphrase of the credentials to...
[ "Retrieves", "credential", "information", "from", "MyProxy", "server", ".", "Only", "the", "information", "of", "the", "default", "credential", "is", "returned", "by", "this", "operation", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/myproxy/src/main/java/org/globus/myproxy/MyProxy.java#L726-L734
99,669
jglobus/JGlobus
myproxy/src/main/java/org/globus/myproxy/MyProxy.java
MyProxy.getTrustroots
public void getTrustroots(GSSCredential credential, GetTrustrootsParams params) throws MyProxyException { if (params == null) { throw new IllegalArgumentException("params == null"); } if (credential == null) { try { ...
java
public void getTrustroots(GSSCredential credential, GetTrustrootsParams params) throws MyProxyException { if (params == null) { throw new IllegalArgumentException("params == null"); } if (credential == null) { try { ...
[ "public", "void", "getTrustroots", "(", "GSSCredential", "credential", ",", "GetTrustrootsParams", "params", ")", "throws", "MyProxyException", "{", "if", "(", "params", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"params == null\"", "...
Retrieves trustroot information from the MyProxy server. @param credential The local GSI credentials to use for authentication. Can be set to null if no local credentials. @param params The parameters for the get-trustroots operation. @exception MyProxyException If an error occurred during the operation.
[ "Retrieves", "trustroot", "information", "from", "the", "MyProxy", "server", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/myproxy/src/main/java/org/globus/myproxy/MyProxy.java#L1105-L1157
99,670
jglobus/JGlobus
myproxy/src/main/java/org/globus/myproxy/MyProxy.java
MyProxy.writeTrustRoots
public boolean writeTrustRoots(String directory) throws IOException { if (this.trustrootFilenames == null || this.trustrootData == null) { return false; } File rootDir = new File(directory); if (!rootDir.exists()) { rootDir.mkdirs(); } for (int i =...
java
public boolean writeTrustRoots(String directory) throws IOException { if (this.trustrootFilenames == null || this.trustrootData == null) { return false; } File rootDir = new File(directory); if (!rootDir.exists()) { rootDir.mkdirs(); } for (int i =...
[ "public", "boolean", "writeTrustRoots", "(", "String", "directory", ")", "throws", "IOException", "{", "if", "(", "this", ".", "trustrootFilenames", "==", "null", "||", "this", ".", "trustrootData", "==", "null", ")", "{", "return", "false", ";", "}", "File"...
Writes the retrieved trust roots to a trusted certificates directory. @param directory path where the trust roots should be written @return true if trust roots are written successfully, false if no trust roots are available to be written
[ "Writes", "the", "retrieved", "trust", "roots", "to", "a", "trusted", "certificates", "directory", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/myproxy/src/main/java/org/globus/myproxy/MyProxy.java#L1475-L1490
99,671
jglobus/JGlobus
myproxy/src/main/java/org/globus/myproxy/MyProxy.java
MyProxy.toHex
protected static String toHex(final byte[] bin) { if (bin == null || bin.length == 0) return ""; char[] buffer = new char[bin.length * 2]; final char[] hex = "0123456789abcdef".toCharArray(); // i tracks input position, j tracks output position for (int i = 0, j = ...
java
protected static String toHex(final byte[] bin) { if (bin == null || bin.length == 0) return ""; char[] buffer = new char[bin.length * 2]; final char[] hex = "0123456789abcdef".toCharArray(); // i tracks input position, j tracks output position for (int i = 0, j = ...
[ "protected", "static", "String", "toHex", "(", "final", "byte", "[", "]", "bin", ")", "{", "if", "(", "bin", "==", "null", "||", "bin", ".", "length", "==", "0", ")", "return", "\"\"", ";", "char", "[", "]", "buffer", "=", "new", "char", "[", "bi...
encode binary to hex
[ "encode", "binary", "to", "hex" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/myproxy/src/main/java/org/globus/myproxy/MyProxy.java#L1522-L1538
99,672
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineGetKey
@Override public Key engineGetKey(String s, char[] chars) throws NoSuchAlgorithmException, UnrecoverableKeyException { CredentialWrapper credential = getKeyEntry(s); Key key = null; if (credential != null) { try { String password = null; if (chars != null) { password = new String(chars); ...
java
@Override public Key engineGetKey(String s, char[] chars) throws NoSuchAlgorithmException, UnrecoverableKeyException { CredentialWrapper credential = getKeyEntry(s); Key key = null; if (credential != null) { try { String password = null; if (chars != null) { password = new String(chars); ...
[ "@", "Override", "public", "Key", "engineGetKey", "(", "String", "s", ",", "char", "[", "]", "chars", ")", "throws", "NoSuchAlgorithmException", ",", "UnrecoverableKeyException", "{", "CredentialWrapper", "credential", "=", "getKeyEntry", "(", "s", ")", ";", "Ke...
Get the key referenced by the specified alias. @param s The key's alias. @param chars The key's password. @return The key reference by the alias or null. @throws NoSuchAlgorithmException If the key is encoded with an invalid algorithm. @throws UnrecoverableKeyException If the key can not be retrieved.
[ "Get", "the", "key", "referenced", "by", "the", "specified", "alias", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L139-L159
99,673
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineStore
@Override public void engineStore(OutputStream outputStream, char[] chars) throws IOException, NoSuchAlgorithmException, CertificateException { for (SecurityObjectWrapper<?> object : this.aliasObjectMap.values()) { if (object instanceof Storable) { try { ((Storable) object).store(); } catch (Resou...
java
@Override public void engineStore(OutputStream outputStream, char[] chars) throws IOException, NoSuchAlgorithmException, CertificateException { for (SecurityObjectWrapper<?> object : this.aliasObjectMap.values()) { if (object instanceof Storable) { try { ((Storable) object).store(); } catch (Resou...
[ "@", "Override", "public", "void", "engineStore", "(", "OutputStream", "outputStream", ",", "char", "[", "]", "chars", ")", "throws", "IOException", ",", "NoSuchAlgorithmException", ",", "CertificateException", "{", "for", "(", "SecurityObjectWrapper", "<", "?", "...
Persist the security material in this keystore. If the object has a path associated with it, the object will be persisted to that path. Otherwise it will be stored in the default certificate directory. As a result, the parameters of this method are ignored. @param outputStream This parameter is ignored. @param chars T...
[ "Persist", "the", "security", "material", "in", "this", "keystore", ".", "If", "the", "object", "has", "a", "path", "associated", "with", "it", "the", "object", "will", "be", "persisted", "to", "that", "path", ".", "Otherwise", "it", "will", "be", "stored"...
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L187-L199
99,674
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineGetCreationDate
@Override public Date engineGetCreationDate(String s) { try { ResourceTrustAnchor trustAnchor = getCertificateEntry(s); if (trustAnchor != null) { return trustAnchor.getTrustAnchor().getTrustedCert() .getNotBefore(); } else { CredentialWrapper credential = getKeyEntry(s); if (credential !=...
java
@Override public Date engineGetCreationDate(String s) { try { ResourceTrustAnchor trustAnchor = getCertificateEntry(s); if (trustAnchor != null) { return trustAnchor.getTrustAnchor().getTrustedCert() .getNotBefore(); } else { CredentialWrapper credential = getKeyEntry(s); if (credential !=...
[ "@", "Override", "public", "Date", "engineGetCreationDate", "(", "String", "s", ")", "{", "try", "{", "ResourceTrustAnchor", "trustAnchor", "=", "getCertificateEntry", "(", "s", ")", ";", "if", "(", "trustAnchor", "!=", "null", ")", "{", "return", "trustAnchor...
Get the creation date for the object referenced by the alias. @param s The alias of the security object. @return The creation date of the security object.
[ "Get", "the", "creation", "date", "for", "the", "object", "referenced", "by", "the", "alias", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L208-L225
99,675
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineGetCertificateChain
@Override public Certificate[] engineGetCertificateChain(String s) { CredentialWrapper credential = getKeyEntry(s); X509Certificate[] chain = new X509Certificate[0]; if (credential != null) { try { chain = credential.getCredential().getCertificateChain(); } catch (ResourceStoreException e) { logger...
java
@Override public Certificate[] engineGetCertificateChain(String s) { CredentialWrapper credential = getKeyEntry(s); X509Certificate[] chain = new X509Certificate[0]; if (credential != null) { try { chain = credential.getCredential().getCertificateChain(); } catch (ResourceStoreException e) { logger...
[ "@", "Override", "public", "Certificate", "[", "]", "engineGetCertificateChain", "(", "String", "s", ")", "{", "CredentialWrapper", "credential", "=", "getKeyEntry", "(", "s", ")", ";", "X509Certificate", "[", "]", "chain", "=", "new", "X509Certificate", "[", ...
Get the certificateChain for the key referenced by the alias. @param s The key alias. @return The key's certificate chain or a 0 length array if the key is not in the keystore.
[ "Get", "the", "certificateChain", "for", "the", "key", "referenced", "by", "the", "alias", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L248-L261
99,676
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineGetCertificate
@Override public Certificate engineGetCertificate(String s) { ResourceTrustAnchor trustAnchor = getCertificateEntry(s); if (trustAnchor != null) { try { return trustAnchor.getTrustAnchor().getTrustedCert(); } catch (ResourceStoreException e) { return null; } } return null; }
java
@Override public Certificate engineGetCertificate(String s) { ResourceTrustAnchor trustAnchor = getCertificateEntry(s); if (trustAnchor != null) { try { return trustAnchor.getTrustAnchor().getTrustedCert(); } catch (ResourceStoreException e) { return null; } } return null; }
[ "@", "Override", "public", "Certificate", "engineGetCertificate", "(", "String", "s", ")", "{", "ResourceTrustAnchor", "trustAnchor", "=", "getCertificateEntry", "(", "s", ")", ";", "if", "(", "trustAnchor", "!=", "null", ")", "{", "try", "{", "return", "trust...
Get the certificate referenced by the supplied alias. @param s The alias. @return The Certificate or null if the alias does not exist in the keyStore.
[ "Get", "the", "certificate", "referenced", "by", "the", "supplied", "alias", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L271-L282
99,677
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineLoad
@Override public void engineLoad(KeyStore.LoadStoreParameter loadStoreParameter) throws IOException, NoSuchAlgorithmException, CertificateException { if (!(loadStoreParameter instanceof KeyStoreParametersFactory.FileStoreParameters)) { throw new IllegalArgumentException("Unable to process parameters: " + ...
java
@Override public void engineLoad(KeyStore.LoadStoreParameter loadStoreParameter) throws IOException, NoSuchAlgorithmException, CertificateException { if (!(loadStoreParameter instanceof KeyStoreParametersFactory.FileStoreParameters)) { throw new IllegalArgumentException("Unable to process parameters: " + ...
[ "@", "Override", "public", "void", "engineLoad", "(", "KeyStore", ".", "LoadStoreParameter", "loadStoreParameter", ")", "throws", "IOException", ",", "NoSuchAlgorithmException", ",", "CertificateException", "{", "if", "(", "!", "(", "loadStoreParameter", "instanceof", ...
Load the keystore based on parameters in the LoadStoreParameter. The parameter object must be an instance of FileBasedKeyStoreParameters. @param loadStoreParameter The parameters to load. @throws IOException @throws NoSuchAlgorithmException @throws CertificateException
[ "Load", "the", "keystore", "based", "on", "parameters", "in", "the", "LoadStoreParameter", ".", "The", "parameter", "object", "must", "be", "an", "instance", "of", "FileBasedKeyStoreParameters", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L294-L311
99,678
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.initialize
private void initialize(String defaultDirectoryString, String directoryListString, String proxyFilename, String certFilename, String keyFilename) throws IOException, CertificateException { if (defaultDirectoryString != null) { defaultDirectory = new GlobusPathMatchingResourcePatternResolver().getResource...
java
private void initialize(String defaultDirectoryString, String directoryListString, String proxyFilename, String certFilename, String keyFilename) throws IOException, CertificateException { if (defaultDirectoryString != null) { defaultDirectory = new GlobusPathMatchingResourcePatternResolver().getResource...
[ "private", "void", "initialize", "(", "String", "defaultDirectoryString", ",", "String", "directoryListString", ",", "String", "proxyFilename", ",", "String", "certFilename", ",", "String", "keyFilename", ")", "throws", "IOException", ",", "CertificateException", "{", ...
Initialize resources from filename, proxyfile name @param defaultDirectoryString Name of the default directory name as: "file: directory name" @param directoryListString @param proxyFilename @param certFilename @param keyFilename @throws IOException @throws CertificateException
[ "Initialize", "resources", "from", "filename", "proxyfile", "name" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L379-L412
99,679
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineDeleteEntry
@Override public void engineDeleteEntry(String s) throws KeyStoreException { SecurityObjectWrapper<?> object = this.aliasObjectMap.remove(s); if (object != null) { if (object instanceof ResourceTrustAnchor) { ResourceTrustAnchor descriptor = (ResourceTrustAnchor) object; Certificate cert; try { ...
java
@Override public void engineDeleteEntry(String s) throws KeyStoreException { SecurityObjectWrapper<?> object = this.aliasObjectMap.remove(s); if (object != null) { if (object instanceof ResourceTrustAnchor) { ResourceTrustAnchor descriptor = (ResourceTrustAnchor) object; Certificate cert; try { ...
[ "@", "Override", "public", "void", "engineDeleteEntry", "(", "String", "s", ")", "throws", "KeyStoreException", "{", "SecurityObjectWrapper", "<", "?", ">", "object", "=", "this", ".", "aliasObjectMap", ".", "remove", "(", "s", ")", ";", "if", "(", "object",...
Delete a security object from this keystore. @param s The alias of the object to delete. @throws KeyStoreException
[ "Delete", "a", "security", "object", "from", "this", "keystore", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L506-L541
99,680
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineSetKeyEntry
@Override public void engineSetKeyEntry(String s, Key key, char[] chars, Certificate[] certificates) throws KeyStoreException { if (!(key instanceof PrivateKey)) { throw new KeyStoreException("PrivateKey expected"); } if (!(certificates instanceof X509Certificate[])) { throw new KeyStoreException( ...
java
@Override public void engineSetKeyEntry(String s, Key key, char[] chars, Certificate[] certificates) throws KeyStoreException { if (!(key instanceof PrivateKey)) { throw new KeyStoreException("PrivateKey expected"); } if (!(certificates instanceof X509Certificate[])) { throw new KeyStoreException( ...
[ "@", "Override", "public", "void", "engineSetKeyEntry", "(", "String", "s", ",", "Key", "key", ",", "char", "[", "]", "chars", ",", "Certificate", "[", "]", "certificates", ")", "throws", "KeyStoreException", "{", "if", "(", "!", "(", "key", "instanceof", ...
Add a new private key to the keystore. @param s The alias for the object. @param key The private key. @param chars The password. @param certificates The key's certificate chain. @throws KeyStoreException
[ "Add", "a", "new", "private", "key", "to", "the", "keystore", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L567-L589
99,681
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java
PEMKeyStore.engineSetCertificateEntry
@Override public void engineSetCertificateEntry(String alias, Certificate certificate) throws KeyStoreException { if (!(certificate instanceof X509Certificate)) { throw new KeyStoreException( "Certificate must be instance of X509Certificate"); } File file; ResourceTrustAnchor trustAnchor = getCerti...
java
@Override public void engineSetCertificateEntry(String alias, Certificate certificate) throws KeyStoreException { if (!(certificate instanceof X509Certificate)) { throw new KeyStoreException( "Certificate must be instance of X509Certificate"); } File file; ResourceTrustAnchor trustAnchor = getCerti...
[ "@", "Override", "public", "void", "engineSetCertificateEntry", "(", "String", "alias", ",", "Certificate", "certificate", ")", "throws", "KeyStoreException", "{", "if", "(", "!", "(", "certificate", "instanceof", "X509Certificate", ")", ")", "{", "throw", "new", ...
Add a certificate to the keystore. @param alias The certificate alias. @param certificate The certificate to store. @throws KeyStoreException
[ "Add", "a", "certificate", "to", "the", "keystore", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/stores/PEMKeyStore.java#L713-L745
99,682
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java
ProxyCertificateUtil.isProxy
public static boolean isProxy(GSIConstants.CertificateType certType) { return isGsi2Proxy(certType) || isGsi3Proxy(certType) || isGsi4Proxy(certType); }
java
public static boolean isProxy(GSIConstants.CertificateType certType) { return isGsi2Proxy(certType) || isGsi3Proxy(certType) || isGsi4Proxy(certType); }
[ "public", "static", "boolean", "isProxy", "(", "GSIConstants", ".", "CertificateType", "certType", ")", "{", "return", "isGsi2Proxy", "(", "certType", ")", "||", "isGsi3Proxy", "(", "certType", ")", "||", "isGsi4Proxy", "(", "certType", ")", ";", "}" ]
Determines if a specified certificate type indicates a GSI-2, GSI-3 or GSI-4proxy certificate. @param certType the certificate type to check. @return true if certType is a GSI-2 or GSI-3 or GSI-4 proxy, false otherwise.
[ "Determines", "if", "a", "specified", "certificate", "type", "indicates", "a", "GSI", "-", "2", "GSI", "-", "3", "or", "GSI", "-", "4proxy", "certificate", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java#L44-L46
99,683
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java
ProxyCertificateUtil.isGsi4Proxy
public static boolean isGsi4Proxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_4_IMPERSONATION_PROXY || certType == GSIConstants.CertificateType.GSI_4_INDEPENDENT_PROXY || certType == GSIConstants.CertificateType.GSI_4_RESTRICTED_PR...
java
public static boolean isGsi4Proxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_4_IMPERSONATION_PROXY || certType == GSIConstants.CertificateType.GSI_4_INDEPENDENT_PROXY || certType == GSIConstants.CertificateType.GSI_4_RESTRICTED_PR...
[ "public", "static", "boolean", "isGsi4Proxy", "(", "GSIConstants", ".", "CertificateType", "certType", ")", "{", "return", "certType", "==", "GSIConstants", ".", "CertificateType", ".", "GSI_4_IMPERSONATION_PROXY", "||", "certType", "==", "GSIConstants", ".", "Certifi...
Determines if a specified certificate type indicates a GSI-4 proxy certificate. @param certType the certificate type to check. @return true if certType is a GSI-4 proxy, false otherwise.
[ "Determines", "if", "a", "specified", "certificate", "type", "indicates", "a", "GSI", "-", "4", "proxy", "certificate", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java#L55-L60
99,684
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java
ProxyCertificateUtil.isGsi3Proxy
public static boolean isGsi3Proxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_3_IMPERSONATION_PROXY || certType == GSIConstants.CertificateType.GSI_3_INDEPENDENT_PROXY || certType == GSIConstants.CertificateType.GSI_3_RESTRICTED_PR...
java
public static boolean isGsi3Proxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_3_IMPERSONATION_PROXY || certType == GSIConstants.CertificateType.GSI_3_INDEPENDENT_PROXY || certType == GSIConstants.CertificateType.GSI_3_RESTRICTED_PR...
[ "public", "static", "boolean", "isGsi3Proxy", "(", "GSIConstants", ".", "CertificateType", "certType", ")", "{", "return", "certType", "==", "GSIConstants", ".", "CertificateType", ".", "GSI_3_IMPERSONATION_PROXY", "||", "certType", "==", "GSIConstants", ".", "Certifi...
Determines if a specified certificate type indicates a GSI-3 proxy certificate. @param certType the certificate type to check. @return true if certType is a GSI-3 proxy, false otherwise.
[ "Determines", "if", "a", "specified", "certificate", "type", "indicates", "a", "GSI", "-", "3", "proxy", "certificate", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java#L69-L74
99,685
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java
ProxyCertificateUtil.isGsi2Proxy
public static boolean isGsi2Proxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_2_PROXY || certType == GSIConstants.CertificateType.GSI_2_LIMITED_PROXY; }
java
public static boolean isGsi2Proxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_2_PROXY || certType == GSIConstants.CertificateType.GSI_2_LIMITED_PROXY; }
[ "public", "static", "boolean", "isGsi2Proxy", "(", "GSIConstants", ".", "CertificateType", "certType", ")", "{", "return", "certType", "==", "GSIConstants", ".", "CertificateType", ".", "GSI_2_PROXY", "||", "certType", "==", "GSIConstants", ".", "CertificateType", "...
Determines if a specified certificate type indicates a GSI-2 proxy certificate. @param certType the certificate type to check. @return true if certType is a GSI-2 proxy, false otherwise.
[ "Determines", "if", "a", "specified", "certificate", "type", "indicates", "a", "GSI", "-", "2", "proxy", "certificate", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java#L83-L86
99,686
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java
ProxyCertificateUtil.isLimitedProxy
public static boolean isLimitedProxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_3_LIMITED_PROXY || certType == GSIConstants.CertificateType.GSI_2_LIMITED_PROXY || certType == GSIConstants.CertificateType.GSI_4_LIMITED_PROXY; }
java
public static boolean isLimitedProxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_3_LIMITED_PROXY || certType == GSIConstants.CertificateType.GSI_2_LIMITED_PROXY || certType == GSIConstants.CertificateType.GSI_4_LIMITED_PROXY; }
[ "public", "static", "boolean", "isLimitedProxy", "(", "GSIConstants", ".", "CertificateType", "certType", ")", "{", "return", "certType", "==", "GSIConstants", ".", "CertificateType", ".", "GSI_3_LIMITED_PROXY", "||", "certType", "==", "GSIConstants", ".", "Certificat...
Determines if a specified certificate type indicates a GSI-2 or GSI-3 or GSI=4 limited proxy certificate. @param certType the certificate type to check. @return true if certType is a GSI-2 or GSI-3 or GSI-4 limited proxy, false otherwise.
[ "Determines", "if", "a", "specified", "certificate", "type", "indicates", "a", "GSI", "-", "2", "or", "GSI", "-", "3", "or", "GSI", "=", "4", "limited", "proxy", "certificate", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java#L96-L100
99,687
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java
ProxyCertificateUtil.isIndependentProxy
public static boolean isIndependentProxy( GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_3_INDEPENDENT_PROXY || certType == GSIConstants.CertificateType.GSI_4_INDEPENDENT_PROXY; }
java
public static boolean isIndependentProxy( GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_3_INDEPENDENT_PROXY || certType == GSIConstants.CertificateType.GSI_4_INDEPENDENT_PROXY; }
[ "public", "static", "boolean", "isIndependentProxy", "(", "GSIConstants", ".", "CertificateType", "certType", ")", "{", "return", "certType", "==", "GSIConstants", ".", "CertificateType", ".", "GSI_3_INDEPENDENT_PROXY", "||", "certType", "==", "GSIConstants", ".", "Ce...
Determines if a specified certificate type indicates a GSI-3 or GS-4 limited proxy certificate. @param certType the certificate type to check. @return true if certType is a GSI-3 or GSI-4 independent proxy, false otherwise.
[ "Determines", "if", "a", "specified", "certificate", "type", "indicates", "a", "GSI", "-", "3", "or", "GS", "-", "4", "limited", "proxy", "certificate", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java#L110-L114
99,688
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java
ProxyCertificateUtil.isImpersonationProxy
public static boolean isImpersonationProxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_3_IMPERSONATION_PROXY || certType == GSIConstants.CertificateType.GSI_3_LIMITED_PROXY || certType == GSIConstants.CertificateType.GSI_4_IMPERSON...
java
public static boolean isImpersonationProxy(GSIConstants.CertificateType certType) { return certType == GSIConstants.CertificateType.GSI_3_IMPERSONATION_PROXY || certType == GSIConstants.CertificateType.GSI_3_LIMITED_PROXY || certType == GSIConstants.CertificateType.GSI_4_IMPERSON...
[ "public", "static", "boolean", "isImpersonationProxy", "(", "GSIConstants", ".", "CertificateType", "certType", ")", "{", "return", "certType", "==", "GSIConstants", ".", "CertificateType", ".", "GSI_3_IMPERSONATION_PROXY", "||", "certType", "==", "GSIConstants", ".", ...
Determines if a specified certificate type indicates a GSI-2 or GSI-3 or GSI-4 impersonation proxy certificate. @param certType the certificate type to check. @return true if certType is a GSI-2 or GSI-3 or GSI-4 impersonation proxy, false otherwise.
[ "Determines", "if", "a", "specified", "certificate", "type", "indicates", "a", "GSI", "-", "2", "or", "GSI", "-", "3", "or", "GSI", "-", "4", "impersonation", "proxy", "certificate", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java#L124-L132
99,689
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java
ProxyCertificateUtil.getProxyTypeAsString
public static String getProxyTypeAsString(GSIConstants.CertificateType proxyType) { switch(proxyType) { case GSI_4_IMPERSONATION_PROXY: return "RFC 3820 compliant impersonation proxy"; case GSI_4_INDEPENDENT_PROXY: return "RFC 3820 compliant independent proxy"; ca...
java
public static String getProxyTypeAsString(GSIConstants.CertificateType proxyType) { switch(proxyType) { case GSI_4_IMPERSONATION_PROXY: return "RFC 3820 compliant impersonation proxy"; case GSI_4_INDEPENDENT_PROXY: return "RFC 3820 compliant independent proxy"; ca...
[ "public", "static", "String", "getProxyTypeAsString", "(", "GSIConstants", ".", "CertificateType", "proxyType", ")", "{", "switch", "(", "proxyType", ")", "{", "case", "GSI_4_IMPERSONATION_PROXY", ":", "return", "\"RFC 3820 compliant impersonation proxy\"", ";", "case", ...
Returns a string description of a specified proxy type. @param proxyType the proxy type to get the string description of. @return the string description of the proxy type.
[ "Returns", "a", "string", "description", "of", "a", "specified", "proxy", "type", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/util/ProxyCertificateUtil.java#L170-L195
99,690
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/SigningPolicyParser.java
SigningPolicyParser.parse
public Map<X500Principal, SigningPolicy> parse(String fileName) throws FileNotFoundException, SigningPolicyException { if ((fileName == null) || (fileName.trim().isEmpty())) { throw new IllegalArgumentException(); } logger.debug("Signing policy file name " + fileName); ...
java
public Map<X500Principal, SigningPolicy> parse(String fileName) throws FileNotFoundException, SigningPolicyException { if ((fileName == null) || (fileName.trim().isEmpty())) { throw new IllegalArgumentException(); } logger.debug("Signing policy file name " + fileName); ...
[ "public", "Map", "<", "X500Principal", ",", "SigningPolicy", ">", "parse", "(", "String", "fileName", ")", "throws", "FileNotFoundException", ",", "SigningPolicyException", "{", "if", "(", "(", "fileName", "==", "null", ")", "||", "(", "fileName", ".", "trim",...
Parses the file to extract signing policy defined for CA with the specified DN. If the policy file does not exist, a SigningPolicy object with only CA DN is created. If policy path exists, but no relevant policy exisit, SigningPolicy object with CA DN and file path is created. @param fileName Name of the signing polic...
[ "Parses", "the", "file", "to", "extract", "signing", "policy", "defined", "for", "CA", "with", "the", "specified", "DN", ".", "If", "the", "policy", "file", "does", "not", "exist", "a", "SigningPolicy", "object", "with", "only", "CA", "DN", "is", "created"...
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/SigningPolicyParser.java#L122-L149
99,691
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/SigningPolicyParser.java
SigningPolicyParser.parse
public Map<X500Principal, SigningPolicy> parse(Reader reader) throws SigningPolicyException { Map<X500Principal, SigningPolicy> policies = new HashMap<X500Principal, SigningPolicy>(); BufferedReader bufferedReader = new BufferedReader(reader); try { String line; ...
java
public Map<X500Principal, SigningPolicy> parse(Reader reader) throws SigningPolicyException { Map<X500Principal, SigningPolicy> policies = new HashMap<X500Principal, SigningPolicy>(); BufferedReader bufferedReader = new BufferedReader(reader); try { String line; ...
[ "public", "Map", "<", "X500Principal", ",", "SigningPolicy", ">", "parse", "(", "Reader", "reader", ")", "throws", "SigningPolicyException", "{", "Map", "<", "X500Principal", ",", "SigningPolicy", ">", "policies", "=", "new", "HashMap", "<", "X500Principal", ","...
Parses input stream to extract signing policy defined for CA with the specified DN. @param reader Reader to any input stream to get the signing policy information. @return signing policy map defined by the signing policy file @throws org.globus.gsi.SigningPolicyException Any errors with parsing the signing policy.
[ "Parses", "input", "stream", "to", "extract", "signing", "policy", "defined", "for", "CA", "with", "the", "specified", "DN", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/SigningPolicyParser.java#L161-L199
99,692
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/SigningPolicyParser.java
SigningPolicyParser.findIndex
private int findIndex(String line) { int index = -1; if (line == null) { return index; } String trimmedLine = line.trim(); int spaceIndex = trimmedLine.indexOf(" "); int tabIndex = trimmedLine.indexOf("\t"); if (spaceIndex != -1) { if (...
java
private int findIndex(String line) { int index = -1; if (line == null) { return index; } String trimmedLine = line.trim(); int spaceIndex = trimmedLine.indexOf(" "); int tabIndex = trimmedLine.indexOf("\t"); if (spaceIndex != -1) { if (...
[ "private", "int", "findIndex", "(", "String", "line", ")", "{", "int", "index", "=", "-", "1", ";", "if", "(", "line", "==", "null", ")", "{", "return", "index", ";", "}", "String", "trimmedLine", "=", "line", ".", "trim", "(", ")", ";", "int", "...
find first space or tab as separator.
[ "find", "first", "space", "or", "tab", "as", "separator", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/SigningPolicyParser.java#L571-L597
99,693
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/TrustedCertificatesUtil.java
TrustedCertificatesUtil.createCertStore
public static CertStore createCertStore(TrustedCertificates tc) throws Exception { CertStore store = null; if (tc == null) { String caCertPattern = "file:" + CoGProperties.getDefault().getCaCertLocations() + "/*.0"; store = Stores.getCACertStore(caCertPattern); } else { ...
java
public static CertStore createCertStore(TrustedCertificates tc) throws Exception { CertStore store = null; if (tc == null) { String caCertPattern = "file:" + CoGProperties.getDefault().getCaCertLocations() + "/*.0"; store = Stores.getCACertStore(caCertPattern); } else { ...
[ "public", "static", "CertStore", "createCertStore", "(", "TrustedCertificates", "tc", ")", "throws", "Exception", "{", "CertStore", "store", "=", "null", ";", "if", "(", "tc", "==", "null", ")", "{", "String", "caCertPattern", "=", "\"file:\"", "+", "CoGProper...
Create a CertStore object from TrustedCertificates. The store only loads trusted certificates, no signing policies
[ "Create", "a", "CertStore", "object", "from", "TrustedCertificates", ".", "The", "store", "only", "loads", "trusted", "certificates", "no", "signing", "policies" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/TrustedCertificatesUtil.java#L34-L46
99,694
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/proxy/ProxyPathValidator.java
ProxyPathValidator.removeProxyPolicyHandler
public ProxyPolicyHandler removeProxyPolicyHandler(String id) { return (id != null && this.proxyPolicyHandlers != null) ? (ProxyPolicyHandler)this.proxyPolicyHandlers.remove(id) : null; }
java
public ProxyPolicyHandler removeProxyPolicyHandler(String id) { return (id != null && this.proxyPolicyHandlers != null) ? (ProxyPolicyHandler)this.proxyPolicyHandlers.remove(id) : null; }
[ "public", "ProxyPolicyHandler", "removeProxyPolicyHandler", "(", "String", "id", ")", "{", "return", "(", "id", "!=", "null", "&&", "this", ".", "proxyPolicyHandlers", "!=", "null", ")", "?", "(", "ProxyPolicyHandler", ")", "this", ".", "proxyPolicyHandlers", "....
Removes a restricted proxy policy handler. @param id the Oid of the policy handler to remove. @return <code>ProxyPolicyHandler</code> the removed handler, or null if there is no handler registered under that id.
[ "Removes", "a", "restricted", "proxy", "policy", "handler", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/proxy/ProxyPathValidator.java#L115-L119
99,695
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/proxy/ProxyPathValidator.java
ProxyPathValidator.setProxyPolicyHandler
public ProxyPolicyHandler setProxyPolicyHandler(String id, ProxyPolicyHandler handler) { if (id == null) { throw new IllegalArgumentException(i18n.getMessage("proxyPolicyId")); } if (handler == null) { throw new IllegalArgumentException(i18n. getMe...
java
public ProxyPolicyHandler setProxyPolicyHandler(String id, ProxyPolicyHandler handler) { if (id == null) { throw new IllegalArgumentException(i18n.getMessage("proxyPolicyId")); } if (handler == null) { throw new IllegalArgumentException(i18n. getMe...
[ "public", "ProxyPolicyHandler", "setProxyPolicyHandler", "(", "String", "id", ",", "ProxyPolicyHandler", "handler", ")", "{", "if", "(", "id", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "i18n", ".", "getMessage", "(", "\"proxyPolicyId...
Sets a restricted proxy policy handler. @param id the Oid of the proxy policy to install the handler for. @param handler the proxy policy handler. @return <code>ProxyPolicyHandler</code> the previous handler installed under the specified id. Usually, will be null.
[ "Sets", "a", "restricted", "proxy", "policy", "handler", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/proxy/ProxyPathValidator.java#L129-L142
99,696
jglobus/JGlobus
ssl-proxies/src/main/java/org/globus/gsi/proxy/ProxyPathValidator.java
ProxyPathValidator.getProxyPolicyHandler
public ProxyPolicyHandler getProxyPolicyHandler(String id) { return (id != null && this.proxyPolicyHandlers != null) ? (ProxyPolicyHandler)this.proxyPolicyHandlers.get(id) : null; }
java
public ProxyPolicyHandler getProxyPolicyHandler(String id) { return (id != null && this.proxyPolicyHandlers != null) ? (ProxyPolicyHandler)this.proxyPolicyHandlers.get(id) : null; }
[ "public", "ProxyPolicyHandler", "getProxyPolicyHandler", "(", "String", "id", ")", "{", "return", "(", "id", "!=", "null", "&&", "this", ".", "proxyPolicyHandlers", "!=", "null", ")", "?", "(", "ProxyPolicyHandler", ")", "this", ".", "proxyPolicyHandlers", ".", ...
Retrieves a restricted proxy policy handler for a given policy id. @param id the Oid of the proxy policy to get the handler for. @return <code>ProxyPolicyHandler</code> the policy handler registered for the given id or null if none is registered.
[ "Retrieves", "a", "restricted", "proxy", "policy", "handler", "for", "a", "given", "policy", "id", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/ssl-proxies/src/main/java/org/globus/gsi/proxy/ProxyPathValidator.java#L152-L156
99,697
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/dc/TransferThreadManager.java
TransferThreadManager.activeConnect
public void activeConnect(HostPort hp, int connections) { for (int i = 0; i < connections; i++) { SocketBox sbox = new ManagedSocketBox(); logger.debug("adding new empty socketBox to the socket pool"); socketPool.add(sbox); logger.debug( ...
java
public void activeConnect(HostPort hp, int connections) { for (int i = 0; i < connections; i++) { SocketBox sbox = new ManagedSocketBox(); logger.debug("adding new empty socketBox to the socket pool"); socketPool.add(sbox); logger.debug( ...
[ "public", "void", "activeConnect", "(", "HostPort", "hp", ",", "int", "connections", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "connections", ";", "i", "++", ")", "{", "SocketBox", "sbox", "=", "new", "ManagedSocketBox", "(", ")", ";...
Act as the active side. Connect to the server and store the newly connected sockets in the socketPool.
[ "Act", "as", "the", "active", "side", ".", "Connect", "to", "the", "server", "and", "store", "the", "newly", "connected", "sockets", "in", "the", "socketPool", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/dc/TransferThreadManager.java#L59-L81
99,698
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/dc/TransferThreadManager.java
TransferThreadManager.activeClose
public void activeClose(TransferContext context, int connections) { try { //this could be improved; for symmetry and performance, //make it a separate task class and pass to the taskThread for (int i = 0; i < connections; i++) { SocketBox sbox = socketPool.c...
java
public void activeClose(TransferContext context, int connections) { try { //this could be improved; for symmetry and performance, //make it a separate task class and pass to the taskThread for (int i = 0; i < connections; i++) { SocketBox sbox = socketPool.c...
[ "public", "void", "activeClose", "(", "TransferContext", "context", ",", "int", "connections", ")", "{", "try", "{", "//this could be improved; for symmetry and performance,", "//make it a separate task class and pass to the taskThread", "for", "(", "int", "i", "=", "0", ";...
use only in mode E
[ "use", "only", "in", "mode", "E" ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/dc/TransferThreadManager.java#L84-L111
99,699
jglobus/JGlobus
gridftp/src/main/java/org/globus/ftp/dc/TransferThreadManager.java
TransferThreadManager.startTransfer
public synchronized void startTransfer(DataSource source, TransferContext context, int connections, boolean reusable) throws ServerException { // things would get messed up i...
java
public synchronized void startTransfer(DataSource source, TransferContext context, int connections, boolean reusable) throws ServerException { // things would get messed up i...
[ "public", "synchronized", "void", "startTransfer", "(", "DataSource", "source", ",", "TransferContext", "context", ",", "int", "connections", ",", "boolean", "reusable", ")", "throws", "ServerException", "{", "// things would get messed up if more than 1 file was transfered",...
This should be used once the remote active server connected to us. This method starts transfer threads that will read data from the source and send. @param reusable if set to false, the sockets will not be reused after the transfer
[ "This", "should", "be", "used", "once", "the", "remote", "active", "server", "connected", "to", "us", ".", "This", "method", "starts", "transfer", "threads", "that", "will", "read", "data", "from", "the", "source", "and", "send", "." ]
e14f6f6636544fd84298f9cec749d626ea971930
https://github.com/jglobus/JGlobus/blob/e14f6f6636544fd84298f9cec749d626ea971930/gridftp/src/main/java/org/globus/ftp/dc/TransferThreadManager.java#L121-L160