ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/connector/CoyotePrincipal.java

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

      
    
Rootfs path

      
    
Size
2039 (2.0 KB)
MD5
8ce185015a5fce27925321fc33ccf7c7
SHA1
222ff736580057325ed9cb9d72969c015471993d
SHA256
d4a27ac263f5ac2f8b70c13974ca2025562f9720c002c8cae888af28c3807600
SHA512

      
    
SHA1_git
38368c01e2790045fbf16065e38707fba208303f
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
CoyotePrincipal.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 * * http://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.catalina.connector; import java.io.Serial; import java.io.Serializable; import java.security.Principal; /** * Generic implementation of <strong>java.security.Principal</strong> that is used to represent principals authenticated * at the protocol handler level. */ public class CoyotePrincipal implements Principal, Serializable { @Serial private static final long serialVersionUID = 1L; // ----------------------------------------------------------- Constructors public CoyotePrincipal(String name) { this.name = name; } // ------------------------------------------------------------- Properties /** * The username of the user represented by this Principal. */ protected final String name; @Override public String getName() { return this.name; } // --------------------------------------------------------- Public Methods /** * Return a String representation of this object, which exposes only information that should be public. */ @Override public String toString() { return "CoyotePrincipal[" + this.name + "]"; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
53.85
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9