ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/dbcp2/datasources/PooledConnectionAndInfo.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/dbcp/dbcp2/datasources/PooledConnectionAndInfo.java
Status
scanned
Type
file
Name
PooledConnectionAndInfo.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2044 (2.0 KB)
MD5
b23a30ca2ce2675aefeb9598adb00851
SHA1
62c2ea2d2d3aab603056189bfb9dbe33a9268f2b
SHA256
3bcc2bc5019046cba39d4043176301d19dbae2ef4dc3b54b49d24886e07eae51
SHA512

      
    
SHA1_git
fd3b281c9cedaf0b13f66a370684e5d6a0c6fe2d
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
PooledConnectionAndInfo.java | 2.0 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomcat.dbcp.dbcp2.datasources; import javax.sql.PooledConnection; /** * Immutable poolable object holding a {@link PooledConnection} along with the user name and password used to create the * connection. * * @since 2.0 */ final class PooledConnectionAndInfo { private final PooledConnection pooledConnection; private final UserPassKey userPassKey; PooledConnectionAndInfo(final PooledConnection pooledConnection, final UserPassKey userPassKey) { this.pooledConnection = pooledConnection; this.userPassKey = userPassKey; } /** * Gets the value of password. * * @return value of password. */ String getPassword() { return userPassKey.getPassword(); } /** * Gets the pooled connection. * * @return the pooled connection. */ PooledConnection getPooledConnection() { return pooledConnection; } /** * Gets the value of userName. * * @return value of userName. */ String getUserName() { return userPassKey.getUserName(); } UserPassKey getUserPassKey() { return userPassKey; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
54.59
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-eb6b5ae0-4f88-4e9b-d67c-c6c8e733b1cd apache-2.0 Apache-2.0
URL Start line End line
https://www.apache.org/licenses/LICENSE-2.0 9 9