Path function ( FileSystem arg0 , String arg1 ) { Path loc0 = new Path ( arg1 ) ; FileStatus loc1 = arg0 . getFileStatus ( loc0 ) ; Preconditions . checkArgument ( USER_READ_PERMISSION_ONLY . equals ( loc1 . getPermission ( ) ) , "srini_string" + loc0 ) ; return loc0 ; }
before retrieving private key , it makes sure that original private key 's permission is read only on the owner . this is a way to ensure to keep private key private . concode_field_sep String serviceAccountId concode_elem_sep String portStr concode_elem_sep JsonFactory JSON_FACTORY concode_elem_sep FsPermission USER_READ_PERMISSION_ONLY concode_elem_sep String privateKeyPath concode_elem_sep Logger LOG concode_elem_sep String JSON_FILE_EXTENSION concode_elem_sep String fileSystemUri concode_elem_sep Collection<String> serviceAccountScopes concode_elem_sep String proxyUrl concode_field_sep CredentialBuilder serviceAccountId concode_elem_sep HttpTransport newTransport concode_elem_sep CredentialBuilder fileSystemUri concode_elem_sep Credential buildCredentialFromJson concode_elem_sep CredentialBuilder port concode_elem_sep CredentialBuilder port concode_elem_sep Credential build concode_elem_sep CredentialBuilder proxyUrl concode_elem_sep Credential buildCredentialFromP12 concode_elem_sep FileSystem getFileSystem concode_elem_sep File copyToLocal concode_elem_sep JsonFactory getJsonFactory